language: generic matrix: include: # Linux Python 2 - sudo: required language: python python: 2.7 services: docker env: PYTHON=python # Linux Python 3 - sudo: required language: python python: 3.4 services: docker env: PYTHON=python # macOS Python 2 - os: osx env: PYTHON=python2 # macOS Python 3 - os: osx env: PYTHON=python3 before_install: - brew update - brew cask uninstall oclint # Workaround for upgrading gcc, see https://github.com/travis-ci/travis-ci/issues/8826 - brew outdated python || brew upgrade python install: $PYTHON -m pip install -r requirements-dev.txt script: $PYTHON ./bin/run_tests.py