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-25 14:02:00 +02:00
|
|
|
- NEWEST_PYTHON=3.7
|
2012-03-04 11:29:55 +01:00
|
|
|
python:
|
2018-07-12 21:33:12 +02:00
|
|
|
# <https://docs.travis-ci.com/user/languages/python/>
|
|
|
|
|
2012-03-04 11:29:55 +01:00
|
|
|
- 2.7
|
2018-07-12 21:33:12 +02:00
|
|
|
|
|
|
|
# Python 3.4 fails installing packages
|
|
|
|
# <https://travis-ci.org/jakubroztocil/httpie/jobs/403263566#L636>
|
|
|
|
# - 3.4
|
|
|
|
|
2018-07-25 14:02:00 +02:00
|
|
|
- 3.5
|
2017-01-08 15:18:19 +01:00
|
|
|
- 3.6
|
2018-07-25 14:02:00 +02:00
|
|
|
# - 3.7 # is done in the matrix below as described in travis-ci/travis-ci#9069
|
2018-07-12 21:16:16 +02:00
|
|
|
- pypy
|
2018-07-12 21:33:12 +02:00
|
|
|
|
2018-07-12 21:16:16 +02:00
|
|
|
# pypy3 currently fails because of a Flask issue
|
|
|
|
# - pypy3
|
2018-07-12 21:33:12 +02:00
|
|
|
|
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
|
2018-09-07 19:08:37 +02:00
|
|
|
- TOXENV=py27-osx-builtin
|
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
|
2018-07-25 14:02:00 +02:00
|
|
|
# Travis Python 3.7 must run sudo on
|
|
|
|
- os: linux
|
|
|
|
python: 3.7
|
|
|
|
env: TOXENV=py37
|
|
|
|
sudo: true # Required for Python 3.7
|
|
|
|
dist: xenial # Required for Python 3.7
|
2018-07-12 21:16:16 +02:00
|
|
|
# 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
|
|
|
- |
|
2018-07-12 21:23:32 +02:00
|
|
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|
|
|
if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then
|
2018-07-12 21:46:00 +02:00
|
|
|
brew update
|
2018-09-07 19:09:30 +02:00
|
|
|
if ! brew list --versions "$BREW_PYTHON_PACKAGE" >/dev/null; then
|
|
|
|
brew install "$BREW_PYTHON_PACKAGE"
|
|
|
|
elif ! brew outdated "$BREW_PYTHON_PACKAGE"; then
|
|
|
|
brew upgrade "$BREW_PYTHON_PACKAGE"
|
|
|
|
fi
|
2018-07-12 21:23:32 +02:00
|
|
|
fi
|
2018-07-12 21:52:01 +02:00
|
|
|
sudo pip2 install tox
|
2018-07-12 21:23:32 +02:00
|
|
|
fi
|
2014-04-28 01:05:03 +02:00
|
|
|
script:
|
2018-07-12 21:16:16 +02:00
|
|
|
- |
|
2018-07-12 21:23:32 +02:00
|
|
|
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
|
|
|
if [[ $CODESTYLE_ONLY ]]; then
|
|
|
|
make pycodestyle
|
|
|
|
else
|
|
|
|
make test
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
|
|
|
|
fi
|
2014-04-28 01:05:03 +02:00
|
|
|
after_success:
|
2018-07-12 21:16:16 +02:00
|
|
|
- |
|
2018-07-12 21:23:32 +02:00
|
|
|
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then
|
|
|
|
make coveralls
|
|
|
|
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
|