Skip to content

Commit

Permalink
Merge pull request #1088 from common-workflow-language/badge-for-jenkins
Browse files Browse the repository at this point in the history
Generate badges in Jenkins CI
  • Loading branch information
mr-c authored Apr 2, 2019
2 parents 7bfd771 + 14c06b3 commit 875b928
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jenkins.bash
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,16 @@ EOF
then
EXTRA="EXTRA=${EXTRA}"
fi
if [[ "$version" = "v1.0" ]] && [[ "$CONTAINER" = "docker" ]] && [ $PYTHON_VERSION -eq 3 ]
then
tool_ver=$(cwltool --version | awk '{ print $2 }')
badgedir=${PWD}/conformance/cwltool/cwl_${version}/cwltool_${tool_ver}
mkdir -p ${PWD}/conformance/cwltool/cwl_${version}/
BADGE=" --badgedir=${badgedir}"
fi
# shellcheck disable=SC2086
LC_ALL=C.UTF-8 ./run_test.sh --junit-xml=result${PYTHON_VERSION}.xml \
RUNNER=${CWLTOOL_WITH_COV} "-j$(nproc)"\
RUNNER=${CWLTOOL_WITH_COV} "-j$(nproc)" ${BADGE} \
${DRAFT} "${EXTRA}" \
"--classname=py${PYTHON_VERSION}_${CONTAINER}"
# LC_ALL=C is to work around junit-xml ASCII only bug
Expand Down

0 comments on commit 875b928

Please sign in to comment.