httpie-cli/.travis.yml

103 lines
2.7 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:
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
- 3.5
2017-01-08 15:18:19 +01:00
- 3.6
# - 3.7 # is done in the matrix below as described in travis-ci/travis-ci#9069
- pypy
# 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:
# Manually defined macOS builds
# <https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)>
# FIXME: stock macOS python fails with InterpreterNotFound
# <https://travis-ci.org/jakubroztocil/httpie/jobs/578189209>
# - os: osx
# language: generic
# env:
# # Stock macOS Python
# - TOXENV=py27-osx-builtin
# - 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
# 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
# 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:
- |
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
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: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: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:
# 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