Skip to content

Commit 875b928

Browse files
authored
Merge pull request #1088 from common-workflow-language/badge-for-jenkins
Generate badges in Jenkins CI
2 parents 7bfd771 + 14c06b3 commit 875b928

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jenkins.bash

+8-1
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,16 @@ EOF
8181
then
8282
EXTRA="EXTRA=${EXTRA}"
8383
fi
84+
if [[ "$version" = "v1.0" ]] && [[ "$CONTAINER" = "docker" ]] && [ $PYTHON_VERSION -eq 3 ]
85+
then
86+
tool_ver=$(cwltool --version | awk '{ print $2 }')
87+
badgedir=${PWD}/conformance/cwltool/cwl_${version}/cwltool_${tool_ver}
88+
mkdir -p ${PWD}/conformance/cwltool/cwl_${version}/
89+
BADGE=" --badgedir=${badgedir}"
90+
fi
8491
# shellcheck disable=SC2086
8592
LC_ALL=C.UTF-8 ./run_test.sh --junit-xml=result${PYTHON_VERSION}.xml \
86-
RUNNER=${CWLTOOL_WITH_COV} "-j$(nproc)"\
93+
RUNNER=${CWLTOOL_WITH_COV} "-j$(nproc)" ${BADGE} \
8794
${DRAFT} "${EXTRA}" \
8895
"--classname=py${PYTHON_VERSION}_${CONTAINER}"
8996
# LC_ALL=C is to work around junit-xml ASCII only bug

0 commit comments

Comments
 (0)