.travis.yml (923B)
1 sudo: false 2 os: linux 3 language: python 4 5 matrix: 6 include: 7 - os: osx 8 language: generic 9 env: TOXENV_SUFFIX=test 10 11 python: 12 - "2.6" 13 - "2.7" 14 - "pypy" 15 - "3.3" 16 - "3.4" 17 18 install: 19 - # The OS X VM doesn't have any Python support at all 20 # See https://github.com/travis-ci/travis-ci/issues/2312 21 if [ "$TRAVIS_OS_NAME" = "osx" ]; then 22 brew update; 23 brew install python3; 24 virtualenv -p python3 $HOME/osx-py3; 25 . $HOME/osx-py3/bin/activate; 26 export TRAVIS_PYTHON_VERSION="$(python --version | cut -d ' ' -f 2 | cut -d . -f -2)"; 27 fi 28 - pip install tox 29 30 script: 31 - export TOX_PY="$(echo py$TRAVIS_PYTHON_VERSION | tr -d . | sed -e 's/pypypy/pypy/')" 32 - tox -e $TOX_PY-test 33 - if [ "$TRAVIS_PYTHON_VERSION" = "2.7" ] || [ "$TRAVIS_PYTHON_VERSION" = ".3.5" ]; then 34 tox -e $TOX_PY-stylecheck; 35 fi