38
38
if [[ " $version " = " v1.0" ]]
39
39
then
40
40
DRAFT=" DRAFT=v1.0"
41
- pushd common-workflow-language-master
41
+ pushd common-workflow-language-master || exit 1
42
42
else
43
- pushd cwl-v1.1-master
43
+ pushd cwl-v1.1-master || exit 1
44
44
fi
45
45
rm -f .coverage* coverage.xml
46
46
source=$( realpath ../cwltool)
47
47
COVERAGE_RC=${PWD} /.coveragerc
48
- cat > ${COVERAGE_RC} << EOF
48
+ cat > " ${COVERAGE_RC} " << EOF
49
49
[run]
50
50
branch = True
51
51
source = ${source}
@@ -61,12 +61,12 @@ omit =
61
61
tests/*
62
62
EOF
63
63
CWLTOOL_WITH_COV=${PWD} /cwltool_with_cov${PYTHON_VERSION}
64
- cat > ${CWLTOOL_WITH_COV} << EOF
64
+ cat > " ${CWLTOOL_WITH_COV} " << EOF
65
65
#!/bin/bash
66
66
coverage run --parallel-mode --rcfile=${COVERAGE_RC} \
67
- "$( which cwltool) " "\$ @"
67
+ "$( command -v cwltool) " "\$ @"
68
68
EOF
69
- chmod a+x ${CWLTOOL_WITH_COV}
69
+ chmod a+x " ${CWLTOOL_WITH_COV} "
70
70
EXTRA=" --parallel"
71
71
# shellcheck disable=SC2154
72
72
if [[ " $version " = * dev* ]]
84
84
if [ " $GIT_BRANCH " = " origin/master" ] && [[ " $version " = " v1.0" ]] && [[ " $CONTAINER " = " docker" ]] && [ $PYTHON_VERSION -eq 3 ]
85
85
then
86
86
rm -Rf conformance
87
- git clone http://${jenkins_cwl_conformance} @github.com/common-workflow-language/conformance.git
87
+ git clone http://" ${jenkins_cwl_conformance} " @github.com/common-workflow-language/conformance.git
88
88
89
89
git -C conformance config user.email
" [email protected] "
90
90
git -C conformance config user.name " CWL Jenkins build bot"
98
98
99
99
tool_ver=$( cwltool --version | awk ' { print $2 }' )
100
100
badgedir=${PWD} /conformance/cwltool/cwl_${version} /cwltool_${tool_ver}
101
- mkdir -p ${PWD} /conformance/cwltool/cwl_${version} /
101
+ mkdir -p " ${PWD} " /conformance/cwltool/cwl_" ${version} " /
102
+ rm -fr " ${badgedir} "
102
103
BADGE=" --badgedir=${badgedir} "
103
104
fi
104
105
# shellcheck disable=SC2086
0 commit comments