Skip to content

Commit

Permalink
New approach to .travis.yml
Browse files Browse the repository at this point in the history
Before this commit, Travis multiplied the Python versions with the
environments, and ran the tests for each combination. I hope the new
approach sets things up correctly, matching Python version with TOXENV
variable.
  • Loading branch information
sybrenstuvel committed Feb 6, 2017
1 parent d24cc15 commit 4e256ab
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@ language: python

# Python versions specified to make tox environment 'py35' and 'py36' work.
# See: https://github.com/travis-ci/travis-ci/issues/4794
python:
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6

# 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=py36
- TOXENV=pypy

matrix:
include:
- python: '2.7'
env: TOXENV=py27
- python: '3.3'
env: TOXENV=py33
- python: '3.4'
env: TOXENV=py34
- python: '3.5'
env: TOXENV=py35
- python: '3.6'
env: TOXENV=py36
- python: 'pypy'
env: TOXENV=pypy

install:
- pip install tox-travis
Expand Down

0 comments on commit 4e256ab

Please sign in to comment.