5
5
6
6
package=cwltool
7
7
module=cwltool
8
- repo=https://github.com/common-workflow-language/cwltool.git
9
- run_tests=" py.test --ignore ${module} /schemas/ --pyarg cwltool"
8
+ slug=${TRAVIS_PULL_REQUEST_SLUG:= common-workflow-language/ cwltool}
9
+ repo=https://github.com/${slug} .git
10
+ run_tests=" bin/py.test --ignore ${module} /schemas/ --pyarg cwltool"
10
11
pipver=7.0.2 # minimum required version of pip
11
12
12
13
rm -Rf testenv? || /bin/true
@@ -17,6 +18,7 @@ if [ "${RELEASE_SKIP}" != "head" ]
17
18
then
18
19
virtualenv testenv1
19
20
# First we test the head
21
+ # shellcheck source=/dev/null
20
22
source testenv1/bin/activate
21
23
rm testenv1/lib/python-wheels/setuptools* \
22
24
&& pip install --force-reinstall -U pip==${pipver} \
27
29
mkdir testenv1/not-${module}
28
30
# if there is a subdir named '${module}' py.test will execute tests
29
31
# there instead of the installed module's tests
30
- pushd testenv1/not-${module} ; ../bin/${run_tests} ; popd
32
+ pushd testenv1/not-${module}
33
+ # shellcheck disable=SC2086
34
+ ../${run_tests} ; popd
31
35
fi
32
36
33
37
virtualenv testenv2
@@ -38,24 +42,27 @@ virtualenv testenv4
38
42
# Secondly we test via pip
39
43
40
44
cd testenv2
45
+ # shellcheck source=/dev/null
41
46
source bin/activate
42
47
rm lib/python-wheels/setuptools* \
43
48
&& pip install --force-reinstall -U pip==${pipver} \
44
49
&& pip install setuptools==20.10.1 wheel
45
- pip install -e git+${repo} @${HEAD} # egg=${package}
50
+ pip install -e " git+${repo} @${HEAD} #egg=${package} "
46
51
cd src/${package}
47
52
make install-dep
48
53
make dist
49
54
make test
50
55
cp dist/${package} * tar.gz ../../../testenv3/
51
56
pip uninstall -y ${package} || true ; pip uninstall -y ${package} || true ; make install
52
57
cd ../.. # no subdir named ${proj} here, safe for py.testing the installed module
53
- bin/${run_tests}
58
+ # shellcheck disable=SC2086
59
+ ${run_tests}
54
60
55
61
# Is the distribution in testenv2 complete enough to build another
56
62
# functional distribution?
57
63
58
64
cd ../testenv3/
65
+ # shellcheck source=/dev/null
59
66
source bin/activate
60
67
rm lib/python-wheels/setuptools* \
61
68
&& pip install --force-reinstall -U pip==${pipver} \
@@ -69,4 +76,6 @@ make dist
69
76
make test
70
77
pip uninstall -y ${package} || true ; pip uninstall -y ${package} || true ; make install
71
78
mkdir ../not-${module}
72
- pushd ../not-${module} ; ../../bin/${run_tests} ; popd
79
+ pushd ../not-${module}
80
+ # shellcheck disable=SC2086
81
+ ../../${run_tests} ; popd
0 commit comments