Skip to content

Commit fa0144d

Browse files
committed
jenkins.bash: Use different virtualenv for 2.7 and 3
Also, make pip versio more explicit in the use
1 parent 02df83a commit fa0144d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

jenkins.bash

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ cloneorpull common-workflow-language https://github.com/common-workflow-language
2525
docker pull node:slim
2626

2727
# Test for Python 2.7 and Python 3
28-
for PYTHON_VERSION in 2 3
28+
for PYTHON_VERSION in 2.7 3
2929
do
30-
venv cwltool-venv
30+
venv cwltool-venv${PYTHON_VERSION}
3131
export PIP_DOWNLOAD_CACHE=/var/lib/jenkins/pypi-cache/
32-
pip install -U setuptools wheel pip
33-
pip install .
34-
pip install "cwltest>=1.0.20160825151655"
32+
# use pip2.7 and pip3 in separate loop runs
33+
pip${PYTHON_VERSION} install -U setuptools wheel pip
34+
pip${PYTHON_VERSION} install .
35+
pip${PYTHON_VERSION} install "cwltest>=1.0.20160825151655"
3536
pushd common-workflow-language
3637
git clean --force -d -x || /bin/true
3738
# shellcheck disable=SC2154

0 commit comments

Comments
 (0)