2018-07-12 21:16:16 +02:00
|
|
|
# <https://travis-ci.org/jakubroztocil/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
|
2015-02-10 01:29:46 +01:00
|
|
|
env:
|
|
|
|
global:
|
2018-07-12 21:16:16 +02:00
|
|
|
- NEWEST_PYTHON=3.7
|
2012-03-04 11:29:55 +01:00
|
|
|
python:
|
|
|
|
- 2.7
|
2016-03-02 02:44:39 +01:00
|
|
|
- 3.4
|
2016-02-29 09:52:33 +01:00
|
|
|
- 3.5
|
2017-01-08 15:18:19 +01:00
|
|
|
- 3.6
|
2018-07-12 21:16:16 +02:00
|
|
|
- 3.7
|
|
|
|
- pypy
|
|
|
|
# pypy3 currently fails because of a Flask issue
|
|
|
|
# - pypy3
|
2017-03-12 13:18:39 +01:00
|
|
|
cache: pip
|
2016-02-29 08:31:31 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-07-12 21:16:16 +02:00
|
|
|
# Add manually defined OS X builds
|
|
|
|
# <https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)>
|
2016-02-29 08:31:31 +01:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
2016-02-29 09:52:33 +01:00
|
|
|
env:
|
2018-07-12 21:16:16 +02:00
|
|
|
# Stock OSX Python
|
2016-02-29 09:52:33 +01:00
|
|
|
- TOXENV=py27
|
2018-07-12 21:16:16 +02:00
|
|
|
- BREW_PYTHON_PACKAGE=
|
2016-02-29 09:52:33 +01:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
2018-07-12 21:16:16 +02:00
|
|
|
# Latest Python 2.7 from Homebrew
|
2016-02-29 09:52:33 +01:00
|
|
|
- TOXENV=py27
|
2018-07-12 21:16:16 +02:00
|
|
|
- BREW_PYTHON_PACKAGE=python@2
|
2016-02-29 09:52:33 +01:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
2018-07-12 21:16:16 +02:00
|
|
|
# Latest Python 3.x from Homebrew
|
|
|
|
- TOXENV=py37 # <= needs to be kept up-to-date to reflect latest minor version
|
|
|
|
- BREW_PYTHON_PACKAGE=python@3
|
|
|
|
# Add a codestyle-only build
|
2016-07-26 21:46:55 +02:00
|
|
|
- os: linux
|
2017-01-08 15:18:19 +01:00
|
|
|
python: 3.6
|
2018-07-12 21:16:16 +02:00
|
|
|
env: CODESTYLE_ONLY=true
|
2016-02-29 10:09:55 +01:00
|
|
|
install:
|
2018-07-12 21:16:16 +02:00
|
|
|
- |
|
2016-02-29 10:09:55 +01:00
|
|
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
2018-07-12 21:16:16 +02:00
|
|
|
sudo pip install tox
|
|
|
|
if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then
|
|
|
|
brew install "$BREW_PYTHON_PACKAGE"
|
|
|
|
fi
|
2016-07-26 21:46:55 +02:00
|
|
|
fi
|
2014-04-28 01:05:03 +02:00
|
|
|
script:
|
2018-07-12 21:16:16 +02:00
|
|
|
- |
|
2016-02-29 09:52:33 +01:00
|
|
|
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
2018-07-12 21:16:16 +02:00
|
|
|
if [[ $CODESTYLE_ONLY ]]; then
|
|
|
|
make pycodestyle
|
|
|
|
else
|
|
|
|
make test
|
|
|
|
fi
|
2016-02-29 09:52:33 +01:00
|
|
|
else
|
2018-07-12 21:16:16 +02:00
|
|
|
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
|
2016-02-29 09:52:33 +01:00
|
|
|
fi
|
2014-04-28 01:05:03 +02:00
|
|
|
after_success:
|
2018-07-12 21:16:16 +02:00
|
|
|
- |
|
2016-03-02 05:25:19 +01:00
|
|
|
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then
|
2018-07-12 21:16:16 +02:00
|
|
|
make coveralls
|
2016-02-29 08:38:59 +01:00
|
|
|
fi
|
2016-02-29 17:12:55 +01:00
|
|
|
notifications:
|
|
|
|
webhooks:
|
2018-07-12 21:16:16 +02:00
|
|
|
# options: [always|never|change] default: always
|
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
|
|
|
on_start: always
|
2016-02-29 17:12:55 +01:00
|
|
|
urls:
|
|
|
|
# https://gitter.im/jkbrzt/httpie
|
|
|
|
- https://webhooks.gitter.im/e/c42fcd359a110d02830b
|