@@ -16,9 +16,10 @@ venv() {
16
16
# clean both the repos before the loop
17
17
git clean --force -d -x || /bin/true
18
18
wget https://github.com/common-workflow-language/common-workflow-language/archive/master.tar.gz
19
- tar xzf master.tar.gz
19
+ tar xzf master.tar.gz && rm master.tar.gz
20
20
docker pull node:slim
21
-
21
+ wget https://github.com/common-workflow-language/cwl-v1.1/archive/master.tar.gz
22
+ tar xzf master.tar.gz && rm master.tar.gz
22
23
23
24
# Test for Python 2.7 and Python 3
24
25
for PYTHON_VERSION in 2 3
34
35
pip${PYTHON_VERSION} uninstall -y cwltool
35
36
pip${PYTHON_VERSION} install -e .
36
37
pip${PYTHON_VERSION} install " cwltest>=1.0.20180518074130" codecov
37
- pushd common-workflow-language-master
38
+ if [[ " $version " = " v1.0" ]]
39
+ then
40
+ DRAFT=" DRAFT=v1.0"
41
+ pushd common-workflow-language-master
42
+ else
43
+ pushd cwl-v1.1-master
44
+ fi
38
45
rm -f .coverage* coverage.xml
39
46
source=$( realpath ../cwltool)
40
47
COVERAGE_RC=${PWD} /.coveragerc
77
84
# shellcheck disable=SC2086
78
85
LC_ALL=C.UTF-8 ./run_test.sh --junit-xml=result${PYTHON_VERSION} .xml \
79
86
RUNNER=${CWLTOOL_WITH_COV} " -j$(( $(nproc) / 2 )) " \
80
- DRAFT= " ${version} " " ${EXTRA} " \
87
+ ${DRAFT} " ${EXTRA} " \
81
88
" --classname=py${PYTHON_VERSION} _${CONTAINER} "
82
89
# LC_ALL=C is to work around junit-xml ASCII only bug
83
90
CODE=$(( CODE+ $? )) # capture return code of ./run_test.sh
0 commit comments