Skip to content

Commit 2c3115e

Browse files
committed
Use tox's builtin support for the TOXENV environment variable
tox checks the environment variable TOXENV to decide what environments to run. Use this builtin feature instead of the slightly different custom one. https://tox.readthedocs.io/en/latest/example/general.html#toxenv > ... or override [the environments] from the command line or from the > environment variable TOXENV:
1 parent 0ebc62e commit 2c3115e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ cache: pip
44
matrix:
55
include:
66
- python: "2.7"
7-
env: TOX_ENV=py27
7+
env: TOXENV=py27
88
- python: "3.4"
9-
env: TOX_ENV=py34
9+
env: TOXENV=py34
1010
- python: "3.5"
11-
env: TOX_ENV=py35
11+
env: TOXENV=py35
1212
- python: "3.6"
13-
env: TOX_ENV=py36
13+
env: TOXENV=py36
1414
- python: "3.7"
15-
env: TOX_ENV=py37
15+
env: TOXENV=py37
1616
dist: xenial
1717
sudo: required
18-
- env: TOX_ENV=flake8
18+
- env: TOXENV=flake8
1919

2020
install:
2121
- "travis_retry pip install setuptools --upgrade"
2222
- "pip install tox"
2323
script:
24-
- tox -e $TOX_ENV
24+
- tox
2525
after_script:
26-
- cat .tox/$TOX_ENV/log/*.log
26+
- cat .tox/$TOXENV/log/*.log

0 commit comments

Comments
 (0)