@@ -9,32 +9,33 @@ repo=https://github.com/common-workflow-language/cwltest.git
9
9
run_tests=" py.test --pyarg ${module} "
10
10
pipver=8.0.1 # minimum required version of pip
11
11
setupver=20.10.1 # minimum required version of setuptools
12
+ PYVER=${PYVER:= 2.7}
12
13
13
- rm -Rf testenv? || /bin/true
14
+ rm -Rf testenv${PYVER} _ ? || /bin/true
14
15
15
16
export HEAD=` git rev-parse HEAD`
16
- virtualenv testenv1
17
- virtualenv testenv2
18
- virtualenv testenv3
19
- virtualenv testenv4
17
+ virtualenv testenv ${PYVER} _1 -p python ${PYVER}
18
+ virtualenv testenv ${PYVER} _2 -p python ${PYVER}
19
+ virtualenv testenv ${PYVER} _3 -p python ${PYVER}
20
+ virtualenv testenv ${PYVER} _4 -p python ${PYVER}
20
21
21
22
# First we test the head
22
- source testenv1 /bin/activate
23
- rm testenv1 /lib/python-wheels/setuptools* \
23
+ source testenv ${PYVER} _1 /bin/activate
24
+ rm testenv ${PYVER} _1 /lib/python-wheels/setuptools* \
24
25
&& pip install --force-reinstall -U pip==${pipver} \
25
26
&& pip install setuptools==${setupver} wheel
26
27
make install-dependencies
27
28
make test
28
29
pip uninstall -y ${package} || true ; pip uninstall -y ${package} || true ; make install
29
- mkdir testenv1 /not-${module}
30
+ mkdir testenv ${PYVER} _1 /not-${module}
30
31
# if there is a subdir named '${module}' py.test will execute tests
31
32
# there instead of the installed module's tests
32
- pushd testenv1 /not-${module} ; ../bin/${run_tests} ; popd
33
+ pushd testenv ${PYVER} _1 /not-${module} ; ../bin/${run_tests} ; popd
33
34
34
35
35
36
# Secondly we test via pip
36
37
37
- cd testenv2
38
+ cd testenv ${PYVER} _2
38
39
source bin/activate
39
40
rm lib/python-wheels/setuptools* \
40
41
&& pip install --force-reinstall -U pip==${pipver} \
@@ -44,15 +45,15 @@ cd src/${package}
44
45
make install-dependencies
45
46
make dist
46
47
make test
47
- cp dist/${package} * tar.gz ../../../testenv3 /
48
+ cp dist/${package} * tar.gz ../../../testenv ${PYVER} _3 /
48
49
pip uninstall -y ${package} || true ; pip uninstall -y ${package} || true ; make install
49
50
cd ../.. # no subdir named ${proj} here, safe for py.testing the installed module
50
51
bin/${run_tests}
51
52
52
- # Is the distribution in testenv2 complete enough to build another
53
+ # Is the distribution in testenv${PYVER}_2 complete enough to build another
53
54
# functional distribution?
54
55
55
- cd ../testenv3 /
56
+ cd ../testenv ${PYVER} _3 /
56
57
source bin/activate
57
58
rm lib/python-wheels/setuptools* \
58
59
&& pip install --force-reinstall -U pip==${pipver} \
0 commit comments