Skip to content

Commit

Permalink
Update .travis.yml to be based on tox
Browse files Browse the repository at this point in the history
- Travis builds runs tox instead of "python setup.py test"; the
  latter was breaking on CPython 3.2
- Add jobs for the PyPy3, CPython 3.5 and CPython 3.6 (nightly)
  interpreters
- Jobs running CPython 3.6 (nightly) are allowed to fail without
  failing the whole build
  • Loading branch information
danilobellini committed Aug 14, 2016
1 parent 972ccd3 commit a513684
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,27 @@ python:
- 3.2
- 3.3
- 3.4
- 3.5
- nightly
- pypy
- pypy3

before_install:
- SED_GET_PY='s/[^0-9]//g;s/.//3g;2s/.*/py/;1!G;h;$!d;s/y.2./y/;s/y.3./y3/'
- PY=$(python -V 2>&1 | sed "$SED_GET_PY")
- test $PY == 32 && TOX='virtualenv<14 tox' || TOX=tox
- export TOXENV=py$PY

install:
- python setup.py install
- pip install $TOX
- tox --notest

script:
- python setup.py test
- tox

notifications:
email: false

matrix:
allow_failures:
- python: nightly

0 comments on commit a513684

Please sign in to comment.