Skip to content

Commit

Permalink
Switch to using a Travis matrix to test on OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Apr 23, 2016
1 parent 180c2de commit 959fc8a
Showing 1 changed file with 57 additions and 19 deletions.
76 changes: 57 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,62 @@
sudo: false
language: python
env:
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=py33
- TOX_ENV=py34
# Disable until Travis *really* supports Python 3.5
# https://github.com/travis-ci/travis-ci/issues/4794
# - TOX_ENV=py35
- TOX_ENV=pypy
- TOX_ENV=flake8
- TOX_ENV=cover
- TOX_ENV=language_ar
- TOX_ENV=language_de
- TOX_ENV=language_el
- TOX_ENV=language_es
- TOX_ENV=language_fr
- TOX_ENV=language_it
- TOX_ENV=language_nl
- TOX_ENV=language_pt_BR
matrix:
include:
- os: linux
python: 2.6
env: TOX_ENV=py26
- os: linux
python: 2.7
env: TOX_ENV=py27
- os: linux
python: 3.3
env: TOX_ENV=py33
- os: linux
python: 3.4
env: TOX_ENV=py34
- os: linux
python: 3.5
env: TOX_ENV=py35
- os: linux
python: pypy
env: TOX_ENV=pypy
- os: osx
language: generic
env: TOX_ENV=py27
- os: linux
python: 2.7
env: TOX_ENV=flake8
- os: linux
python: 2.7
env: TOX_ENV=cover
- os: linux
python: 2.7
env: TOX_ENV=language_ar
- os: linux
python: 2.7
env: TOX_ENV=language_de
- os: linux
python: 2.7
env: TOX_ENV=language_el
- os: linux
python: 2.7
env: TOX_ENV=language_es
- os: linux
python: 2.7
env: TOX_ENV=language_fr
- os: linux
python: 2.7
env: TOX_ENV=language_it
- os: linux
python: 2.7
env: TOX_ENV=language_nl
- os: linux
python: 2.7
env: TOX_ENV=language_pt_BR
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pyenv-virtualenv; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi
install:
- pip install Babel tox
script: tox -e $TOX_ENV

0 comments on commit 959fc8a

Please sign in to comment.