httpie-cli/.travis.yml

78 lines
1.8 KiB
YAML
Raw Normal View History

# <https://travis-ci.org/jakubroztocil/httpie>
sudo: false
2016-02-29 08:35:56 +01:00
language: python
2014-05-14 14:00:26 +02:00
os:
- linux
env:
global:
- 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
- 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:
# 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:
# Stock OSX Python
2016-02-29 09:52:33 +01:00
- TOXENV=py27
- BREW_PYTHON_PACKAGE=
2016-02-29 09:52:33 +01:00
- os: osx
language: generic
env:
# Latest Python 2.7 from Homebrew
2016-02-29 09:52:33 +01:00
- TOXENV=py27
- BREW_PYTHON_PACKAGE=python@2
2016-02-29 09:52:33 +01:00
- os: osx
language: generic
env:
# 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
- os: linux
2017-01-08 15:18:19 +01:00
python: 3.6
env: CODESTYLE_ONLY=true
2016-02-29 10:09:55 +01:00
install:
- |
2016-02-29 10:09:55 +01:00
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
sudo pip install tox
if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then
brew install "$BREW_PYTHON_PACKAGE"
fi
fi
2014-04-28 01:05:03 +02:00
script:
- |
2016-02-29 09:52:33 +01:00
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
if [[ $CODESTYLE_ONLY ]]; then
make pycodestyle
else
make test
fi
2016-02-29 09:52:33 +01:00
else
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:
- |
2016-03-02 05:25:19 +01:00
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then
make coveralls
2016-02-29 08:38:59 +01:00
fi
2016-02-29 17:12:55 +01:00
notifications:
webhooks:
# 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