Allow testing pypys:
METHOD=virtualenv PYTHON=pypy3 VERSION=3.5 ./smoke/venv.sh
METHOD=venv PYTHON=pypy3 VERSION=3.5 ./smoke/venv.sh
METHOD=virtualenv PYTHON=pypy VERSION=2.7 ./smoke/venv.sh
This commit is contained in:
parent
2540126bc6
commit
b3d405a516
1 changed files with 6 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# set python version
|
||||
VERSION=${VERSION:-3.7}
|
||||
PYTHON=python$VERSION
|
||||
PYTHON=${PYTHON:-python$VERSION}
|
||||
METHOD=${METHOD:-venv}
|
||||
TOX=${TOX:-true}
|
||||
|
||||
|
|
@ -82,4 +82,8 @@ deps = pytest
|
|||
commands = python -m pytest -v test_foo.py
|
||||
EOF
|
||||
|
||||
tox -e py${VERSION/./}
|
||||
if [[ $PYTHON == python* ]]; then
|
||||
tox -e py${VERSION/./}
|
||||
else
|
||||
tox -e $PYTHON
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue