2015-07-03 18:55:45 +02:00
|
|
|
|
# https://travis-ci.org/jkbrzt/httpie
|
2015-02-10 05:20:50 +01:00
|
|
|
|
sudo: false
|
2016-02-29 08:35:56 +01:00
|
|
|
|
|
|
|
|
|
language: python
|
2014-05-14 14:00:26 +02:00
|
|
|
|
os:
|
|
|
|
|
- linux
|
2016-02-29 08:35:56 +01:00
|
|
|
|
|
2015-02-10 01:29:46 +01:00
|
|
|
|
env:
|
|
|
|
|
global:
|
2016-02-29 09:52:33 +01:00
|
|
|
|
- NEWEST_PYTHON=3.5
|
2016-02-29 08:35:56 +01:00
|
|
|
|
|
2012-03-04 11:29:55 +01:00
|
|
|
|
python:
|
|
|
|
|
- 2.6
|
|
|
|
|
- 2.7
|
2012-06-13 16:36:51 +02:00
|
|
|
|
- pypy
|
2016-03-02 02:44:39 +01:00
|
|
|
|
- 3.4
|
2016-02-29 09:52:33 +01:00
|
|
|
|
- 3.5
|
2016-07-02 12:03:52 +02:00
|
|
|
|
# Currently fails because of a Flask issue
|
|
|
|
|
# - pypy3
|
2016-02-29 08:31:31 +01:00
|
|
|
|
|
|
|
|
|
matrix:
|
2016-02-29 09:52:33 +01:00
|
|
|
|
|
2016-02-29 08:31:31 +01:00
|
|
|
|
include:
|
2016-02-29 10:19:12 +01:00
|
|
|
|
|
|
|
|
|
# Manually defined OS X builds
|
2016-02-29 08:31:31 +01:00
|
|
|
|
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
|
2016-02-29 10:19:12 +01:00
|
|
|
|
|
|
|
|
|
# Stock OSX Python
|
2016-02-29 08:31:31 +01:00
|
|
|
|
- os: osx
|
|
|
|
|
language: generic
|
2016-02-29 09:52:33 +01:00
|
|
|
|
env:
|
|
|
|
|
- TOXENV=py27
|
2016-02-29 10:19:12 +01:00
|
|
|
|
|
|
|
|
|
# Latest Python 2.x from Homebrew
|
2016-02-29 09:52:33 +01:00
|
|
|
|
- os: osx
|
|
|
|
|
language: generic
|
|
|
|
|
env:
|
|
|
|
|
- TOXENV=py27
|
2016-02-29 10:19:12 +01:00
|
|
|
|
- BREW_INSTALL=python
|
|
|
|
|
|
|
|
|
|
# Latest Python 3.x from Homebrew
|
2016-02-29 09:52:33 +01:00
|
|
|
|
- os: osx
|
|
|
|
|
language: generic
|
|
|
|
|
env:
|
|
|
|
|
- TOXENV=py35
|
2016-02-29 10:19:12 +01:00
|
|
|
|
- BREW_INSTALL=python3
|
2016-02-29 08:31:31 +01:00
|
|
|
|
|
2016-07-26 21:46:55 +02:00
|
|
|
|
# Python Codestyle
|
|
|
|
|
- os: linux
|
|
|
|
|
python: 3.5
|
|
|
|
|
env: CODESTYLE=true
|
|
|
|
|
|
2016-02-29 10:09:55 +01:00
|
|
|
|
install:
|
|
|
|
|
- |
|
|
|
|
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|
|
|
|
if [[ -n "$BREW_INSTALL" ]]; then
|
2016-02-29 10:20:50 +01:00
|
|
|
|
brew update
|
2016-02-29 10:09:55 +01:00
|
|
|
|
brew install "$BREW_INSTALL"
|
|
|
|
|
fi
|
|
|
|
|
sudo pip install tox
|
|
|
|
|
fi
|
2016-07-26 21:46:55 +02:00
|
|
|
|
if [[ $CODESTYLE ]]; then
|
|
|
|
|
pip install pycodestyle
|
|
|
|
|
fi
|
2016-02-29 10:09:55 +01:00
|
|
|
|
|
2014-04-28 01:05:03 +02:00
|
|
|
|
script:
|
2016-02-29 09:52:33 +01:00
|
|
|
|
- |
|
|
|
|
|
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
2016-07-26 21:46:55 +02:00
|
|
|
|
if [[ $CODESTYLE ]]; then
|
2016-07-26 22:59:34 +02:00
|
|
|
|
# 241 - multiple spaces after ‘,’
|
|
|
|
|
# 501 - line too long
|
2016-07-26 21:46:55 +02:00
|
|
|
|
pycodestyle --ignore=E241,E501
|
|
|
|
|
else
|
|
|
|
|
make
|
|
|
|
|
fi
|
2016-02-29 09:52:33 +01:00
|
|
|
|
else
|
2016-02-29 10:19:12 +01:00
|
|
|
|
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
|
2016-02-29 09:52:33 +01:00
|
|
|
|
fi
|
2016-02-29 08:35:56 +01:00
|
|
|
|
|
2014-04-28 01:05:03 +02:00
|
|
|
|
after_success:
|
2016-02-29 08:38:59 +01:00
|
|
|
|
- |
|
2016-03-02 05:25:19 +01:00
|
|
|
|
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then
|
2016-02-29 08:38:59 +01:00
|
|
|
|
pip install python-coveralls && coveralls
|
|
|
|
|
fi
|
2016-02-29 17:12:55 +01:00
|
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
|
|
|
|
|
|
webhooks:
|
|
|
|
|
urls:
|
|
|
|
|
# https://gitter.im/jkbrzt/httpie
|
|
|
|
|
- https://webhooks.gitter.im/e/c42fcd359a110d02830b
|
2016-03-02 03:08:20 +01:00
|
|
|
|
on_success: always # options: [always|never|change] default: always
|
2016-02-29 17:12:55 +01:00
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
2016-03-02 03:08:20 +01:00
|
|
|
|
on_start: always # options: [always|never|change] default: always
|