Skip to content

Commit

Permalink
Install tox in a virtualenv
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sigmavirus24 committed Nov 23, 2016
1 parent 2414cad commit 55459a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -25,4 +25,5 @@ install:
- ./.travis/install.sh

script:
- source ~/.venv/bin/activate
- tox
2 changes: 2 additions & 0 deletions .travis/install.sh
Expand Up @@ -14,4 +14,6 @@ if [[ "${TOXENV}" = pypy* ]]; then
fi


python -m virtualenv ~/.venv
source ~/.venv/bin/activate
pip install --upgrade tox

0 comments on commit 55459a8

Please sign in to comment.