2015-07-03 18:55:45 +02:00
|
|
|
# https://travis-ci.org/jkbrzt/httpie
|
2015-02-10 06:20:50 +02:00
|
|
|
sudo: false
|
2016-02-29 09:35:56 +02:00
|
|
|
|
|
|
|
language: python
|
2014-05-14 15:00:26 +03:00
|
|
|
os:
|
|
|
|
- linux
|
2016-02-29 09:35:56 +02:00
|
|
|
|
2015-02-10 02:29:46 +02:00
|
|
|
env:
|
|
|
|
global:
|
2016-02-29 10:52:33 +02:00
|
|
|
- NEWEST_PYTHON=3.5
|
2016-02-29 09:35:56 +02:00
|
|
|
|
2012-03-04 13:29:55 +03:00
|
|
|
python:
|
|
|
|
- 2.6
|
|
|
|
- 2.7
|
2012-06-13 17:36:51 +03:00
|
|
|
- pypy
|
2016-02-29 10:52:33 +02:00
|
|
|
- 3.5
|
2014-08-15 10:03:27 +03:00
|
|
|
- pypy3
|
2016-02-29 09:31:31 +02:00
|
|
|
|
|
|
|
matrix:
|
2016-02-29 10:52:33 +02:00
|
|
|
|
2016-02-29 09:31:31 +02:00
|
|
|
include:
|
2016-02-29 11:19:12 +02:00
|
|
|
|
|
|
|
# Manually defined OS X builds
|
2016-02-29 09:31:31 +02:00
|
|
|
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
|
2016-02-29 11:19:12 +02:00
|
|
|
|
|
|
|
# Stock OSX Python
|
2016-02-29 09:31:31 +02:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
2016-02-29 10:52:33 +02:00
|
|
|
env:
|
|
|
|
- TOXENV=py27
|
2016-02-29 11:19:12 +02:00
|
|
|
|
|
|
|
# Latest Python 2.x from Homebrew
|
2016-02-29 10:52:33 +02:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- TOXENV=py27
|
2016-02-29 11:19:12 +02:00
|
|
|
- BREW_INSTALL=python
|
|
|
|
|
|
|
|
# Latest Python 3.x from Homebrew
|
2016-02-29 10:52:33 +02:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- TOXENV=py35
|
2016-02-29 11:19:12 +02:00
|
|
|
- BREW_INSTALL=python3
|
2016-02-29 09:31:31 +02:00
|
|
|
|
2016-02-29 11:09:55 +02:00
|
|
|
install:
|
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|
|
|
if [[ -n "$BREW_INSTALL" ]]; then
|
2016-02-29 11:20:50 +02:00
|
|
|
brew update
|
2016-02-29 11:09:55 +02:00
|
|
|
brew install "$BREW_INSTALL"
|
|
|
|
fi
|
|
|
|
sudo pip install tox
|
|
|
|
fi
|
|
|
|
|
2014-04-28 02:05:03 +03:00
|
|
|
script:
|
2016-02-29 10:52:33 +02:00
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
|
|
|
make
|
|
|
|
else
|
2016-02-29 11:19:12 +02:00
|
|
|
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
|
2016-02-29 10:52:33 +02:00
|
|
|
fi
|
2016-02-29 09:35:56 +02:00
|
|
|
|
2014-04-28 02:05:03 +03:00
|
|
|
after_success:
|
2016-02-29 09:38:59 +02:00
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux']]; then
|
|
|
|
pip install python-coveralls && coveralls
|
|
|
|
fi
|