# sudo: false language: python os: - linux env: global: - NEWEST_PYTHON=3.6 # Final Python 3.7 unavailable as of now (and -dev fails) python: # - 2.7 - 3.5 # Python 3.4 fails installing packages # # - 3.4 - 3.6 # Final Python 3.7 unavailable as of now (and -dev fails) # - 3.7 - pypy # pypy3 currently fails because of a Flask issue # - pypy3 cache: pip matrix: include: # Add manually defined OS X builds # - os: osx language: generic env: # Stock OSX Python - TOXENV=py27 - BREW_PYTHON_PACKAGE= - os: osx language: generic env: # Latest Python 2.7 from Homebrew - TOXENV=py27 - BREW_PYTHON_PACKAGE=python@2 - 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 python: 3.6 env: CODESTYLE_ONLY=true install: - | if [[ $TRAVIS_OS_NAME == 'osx' ]]; then if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then brew update brew install "$BREW_PYTHON_PACKAGE" fi sudo pip2 install tox fi script: - | 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 after_success: - | if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then make coveralls fi notifications: webhooks: # options: [always|never|change] default: always on_success: always on_failure: always on_start: always urls: # https://gitter.im/jkbrzt/httpie - https://webhooks.gitter.im/e/c42fcd359a110d02830b