Skip to content

Commit

Permalink
Merge pull request #514 from untitaker/python34-travis
Browse files Browse the repository at this point in the history
Use tox in Travis, install Python 3.4 correctly
  • Loading branch information
mitsuhiko committed Apr 21, 2014
2 parents c527dcb + 6c735d8 commit 16032ae
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .travis.yml
@@ -1,15 +1,25 @@
language: python
python:
- "2.6"
- "2.7"
- "pypy"
- "3.3"
- "3.4"
python: 2.7

env:
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=pypy
- TOX_ENV=py33
- TOX_ENV=py34

install:
- "python setup.py install"
# Travis uses an outdated PyPy, this installs the most recent one.
- "[[ ${TOX_ENV} == pypy ]] && sudo add-apt-repository -y ppa:pypy/ppa || true"
- "[[ ${TOX_ENV} == pypy ]] && sudo apt-get -y update && sudo apt-get -y install pypy || true"
- "[[ ${TOX_ENV} == pypy ]] && sudo rm -rf /usr/local/pypy/bin || true"
# Travis doesn't provide Python 3.4, install it.
- "[[ ${TOX_ENV} == py34 ]] || [[ ${TOX_ENV} == docs-code-python34 ]] && sudo add-apt-repository -y ppa:fkrull/deadsnakes || true"
- "[[ ${TOX_ENV} == py34 ]] || [[ ${TOX_ENV} == docs-code-python34 ]] && sudo apt-get -y update && sudo apt-get -y install python3.4 || true"
- pip install tox

script: make test
script:
- tox -e $TOX_ENV

branches:
except:
Expand Down

0 comments on commit 16032ae

Please sign in to comment.