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-02-29 09:52:33 +01:00
|
|
|
- 3.5
|
2014-08-15 09:03:27 +02:00
|
|
|
- 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:
|
|
|
|
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
2016-02-29 09:52:33 +01:00
|
|
|
env:
|
|
|
|
- TOXENV=py27
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- BREW_INSTALL=python
|
|
|
|
- TOXENV=py27
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- BREW_INSTALL=python3
|
|
|
|
- TOXENV=py35
|
2016-02-29 08:31:31 +01:00
|
|
|
|
2016-02-29 10:09:55 +01:00
|
|
|
install:
|
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|
|
|
if [[ -n "$BREW_INSTALL" ]]; then
|
|
|
|
brew install "$BREW_INSTALL"
|
|
|
|
fi
|
|
|
|
sudo pip install tox
|
|
|
|
fi
|
|
|
|
|
2014-04-28 01:05:03 +02:00
|
|
|
script:
|
2016-02-29 09:52:33 +01:00
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
|
|
|
make
|
|
|
|
else
|
|
|
|
tox -e "$TOXENV"
|
|
|
|
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
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux']]; then
|
|
|
|
pip install python-coveralls && coveralls
|
|
|
|
fi
|