Skip to content

Commit 8c122cc

Browse files
authored
Update .travis.yml
1 parent 28db33a commit 8c122cc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ matrix:
66
include:
77
- name: "Python 2.7 on Linux"
88
python: 2.7
9+
env: TOXENV=py27
910
- name: "Python 3.5 on Linux"
1011
python: 3.5
1112
- name: "Python 3.6 on Linux"
@@ -20,6 +21,7 @@ matrix:
2021
python: nightly
2122
- name: "Pypy on Linux"
2223
python: pypy
24+
env: TOXENV=py27
2325
- name: "Pypy 3 on Linux"
2426
python: pypy3
2527
- name: "Python 3 on older macOS"
@@ -35,7 +37,7 @@ matrix:
3537
os: osx
3638
osx_image: xcode11
3739
language: shell
38-
env: TOXENV=py37 PYENV_VERSION=3.7
40+
env: TOXENV=py37
3941
before_install:
4042
- sw_vers
4143
- python3 --version
@@ -47,8 +49,9 @@ matrix:
4749
- os: osx
4850

4951
install:
50-
- travis_retry pip install -U pip wheel tox-travis
51-
- travis_retry pip install -U -r requirements.txt -e ".[test]"
52+
- if echo $TOXENV | grep -q py27; then PIP=pip; else PIP=pip3; fi
53+
- travis_retry $PIP install -U pip wheel tox-travis
54+
- travis_retry $PIP install -U -r requirements.txt -e ".[test]"
5255

5356
script:
5457
- tox

0 commit comments

Comments
 (0)