Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
Use the magic `TOXENV=py` to automatically infer the python version from which tox is being run. Makes much sleeker travis config. Also, don't need to include the python version in the include because it knows to pick the first one in the list
  • Loading branch information
cthoyt authored Jan 28, 2018
1 parent 9a27b97 commit 7f12806
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,20 @@ cache: pip
language: python

python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- 3.6
- 3.5
- 3.4
- 3.3
- 2.7

env:
- TOXENV=manifest
- TOXENV=docs
matrix:
- TOXENV=py

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
- env: TOXENV=docs
- env: TOXENV=manifest
allow_failures:
- python: "3.3"
- python: "3.4"
Expand Down

0 comments on commit 7f12806

Please sign in to comment.