Skip to content

Commit 00ac9a8

Browse files
committed
sync with schema-salad's release-test.sh
1 parent 875a383 commit 00ac9a8

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

release-test.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ set -x
55

66
package=cwltool
77
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"
1011
pipver=7.0.2 # minimum required version of pip
1112

1213
rm -Rf testenv? || /bin/true
@@ -17,6 +18,7 @@ if [ "${RELEASE_SKIP}" != "head" ]
1718
then
1819
virtualenv testenv1
1920
# First we test the head
21+
# shellcheck source=/dev/null
2022
source testenv1/bin/activate
2123
rm testenv1/lib/python-wheels/setuptools* \
2224
&& pip install --force-reinstall -U pip==${pipver} \
@@ -27,7 +29,9 @@ then
2729
mkdir testenv1/not-${module}
2830
# if there is a subdir named '${module}' py.test will execute tests
2931
# 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
3135
fi
3236

3337
virtualenv testenv2
@@ -38,24 +42,27 @@ virtualenv testenv4
3842
# Secondly we test via pip
3943

4044
cd testenv2
45+
# shellcheck source=/dev/null
4146
source bin/activate
4247
rm lib/python-wheels/setuptools* \
4348
&& pip install --force-reinstall -U pip==${pipver} \
4449
&& 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}"
4651
cd src/${package}
4752
make install-dep
4853
make dist
4954
make test
5055
cp dist/${package}*tar.gz ../../../testenv3/
5156
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install
5257
cd ../.. # no subdir named ${proj} here, safe for py.testing the installed module
53-
bin/${run_tests}
58+
# shellcheck disable=SC2086
59+
${run_tests}
5460

5561
# Is the distribution in testenv2 complete enough to build another
5662
# functional distribution?
5763

5864
cd ../testenv3/
65+
# shellcheck source=/dev/null
5966
source bin/activate
6067
rm lib/python-wheels/setuptools* \
6168
&& pip install --force-reinstall -U pip==${pipver} \
@@ -69,4 +76,6 @@ make dist
6976
make test
7077
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install
7178
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

Comments
 (0)