httpie-cli/.travis.yml

96 lines
1.9 KiB
YAML
Raw Normal View History

2017-03-10 11:27:38 +01:00
# 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
2016-02-29 08:35:56 +01:00
env:
global:
2017-01-08 15:18:19 +01:00
- NEWEST_PYTHON=3.6
2016-02-29 08:35:56 +01:00
2012-03-04 11:29:55 +01:00
python:
- 2.7
2012-06-13 16:36:51 +02:00
- pypy
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
2016-07-02 12:03:52 +02:00
# 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:
2016-02-29 09:52:33 +01:00
2016-02-29 08:31:31 +01:00
include:
2016-02-29 10:19:12 +01:00
# Manually defined OS X builds
2016-02-29 08:31:31 +01:00
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
2016-02-29 10:19:12 +01:00
# Stock OSX Python
2016-02-29 08:31:31 +01:00
- os: osx
language: generic
2016-02-29 09:52:33 +01:00
env:
- TOXENV=py27
2016-02-29 10:19:12 +01:00
# Latest Python 2.x from Homebrew
2016-02-29 09:52:33 +01:00
- os: osx
language: generic
env:
- TOXENV=py27
2016-02-29 10:19:12 +01:00
- BREW_INSTALL=python
# Latest Python 3.x from Homebrew
2016-02-29 09:52:33 +01:00
- os: osx
language: generic
env:
2017-01-08 15:18:19 +01:00
- TOXENV=py36
2016-02-29 10:19:12 +01:00
- BREW_INSTALL=python3
2016-02-29 08:31:31 +01:00
# Python Codestyle
- os: linux
2017-01-08 15:18:19 +01:00
python: 3.6
env: CODESTYLE=true
2016-02-29 10:09:55 +01:00
install:
- |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
if [[ -n "$BREW_INSTALL" ]]; then
2016-02-29 10:20:50 +01:00
brew update
2016-02-29 10:09:55 +01:00
brew install "$BREW_INSTALL"
fi
sudo pip install tox
fi
if [[ $CODESTYLE ]]; then
pip install pycodestyle
fi
2016-02-29 10:09:55 +01:00
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 ]]; then
2016-07-26 22:59:34 +02:00
# 241 - multiple spaces after ,
# 501 - line too long
pycodestyle --ignore=E241,E501
else
make
fi
2016-02-29 09:52:33 +01:00
else
2016-02-29 10:19:12 +01:00
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
2016-02-29 09:52:33 +01:00
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
- |
2016-03-02 05:25:19 +01:00
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then
2016-02-29 08:38:59 +01:00
pip install python-coveralls && coveralls
fi
2016-02-29 17:12:55 +01:00
notifications:
webhooks:
urls:
# https://gitter.im/jkbrzt/httpie
- https://webhooks.gitter.im/e/c42fcd359a110d02830b
2016-03-02 03:08:20 +01:00
on_success: always # options: [always|never|change] default: always
2016-02-29 17:12:55 +01:00
on_failure: always # options: [always|never|change] default: always
2016-03-02 03:08:20 +01:00
on_start: always # options: [always|never|change] default: always