Skip to content

Commit

Permalink
Use tox-travis to run tox when using TravisCI (#102)
Browse files Browse the repository at this point in the history
* Use tox-travis to run tox when using TravisCI

* Always run coveralls after TravisCI

It appears coveralls no longer comments twice
  • Loading branch information
joostrijneveld authored and sybrenstuvel committed Oct 22, 2017
1 parent 8affa13 commit 4d3bde6
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .travis.yml
@@ -1,27 +1,21 @@
language: python

# Python 3.5 specified to make tox environment 'py35' work.
# See: https://github.com/travis-ci/travis-ci/issues/4794
python:
- 3.5

# Environment changes have to be manually synced with 'tox.ini'.
# See: https://github.com/travis-ci/travis-ci/issues/3024
env:
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=py35
- TOXENV=pypy
python:
- 2.7
- 3.3
- 3.4
- 3.5
- "pypy"

install:
- pip install tox-travis
- pip install -r requirements.txt
- pip install coveralls

script:
- tox

after_success:
# Coveralls submission only for py35 environment, because of being the only
# one that executes doctest-modules testing, according to tox.ini.
- if [ ${TOXENV} = "py35" ]; then coveralls; fi
- coveralls

0 comments on commit 4d3bde6

Please sign in to comment.