Skip to content

Commit 55459a8

Browse files
committed
Install tox in a virtualenv
Since TravisCI has an extremely old version of PyPy, we need to use pyenv to install a more recent version. However, pyenv's shims don't persist between the install and script portions of Travis. So we have to use a virtualenv so Travis can find the tox command.
1 parent 2414cad commit 55459a8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ install:
2525
- ./.travis/install.sh
2626

2727
script:
28+
- source ~/.venv/bin/activate
2829
- tox

.travis/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ if [[ "${TOXENV}" = pypy* ]]; then
1414
fi
1515

1616

17+
python -m virtualenv ~/.venv
18+
source ~/.venv/bin/activate
1719
pip install --upgrade tox

0 commit comments

Comments
 (0)