Skip to content

Commit a0f7d43

Browse files
authored
Merge pull request #1189 from common-workflow-language/push-to-conformance
Push conformance badges to commonwl/conformance repository
2 parents fc6ca8b + 08cac18 commit a0f7d43

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

jenkins.bash

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,21 @@ EOF
8181
then
8282
EXTRA="EXTRA=${EXTRA}"
8383
fi
84-
if [[ "$version" = "v1.0" ]] && [[ "$CONTAINER" = "docker" ]] && [ $PYTHON_VERSION -eq 3 ]
84+
if [ "$GIT_BRANCH" = "origin/master" ] && [[ "$version" = "v1.0" ]] && [[ "$CONTAINER" = "docker" ]] && [ $PYTHON_VERSION -eq 3 ]
8585
then
86+
rm -Rf conformance
87+
git clone http://${jenkins_cwl_conformance}@github.com/common-workflow-language/conformance.git
88+
89+
git -C conformance config user.email "[email protected]"
90+
git -C conformance config user.name "CWL Jenkins build bot"
91+
CONFORMANCE_MSG=$(cat << EOM
92+
Conformance test of cwltool ${tool_ver} for CWL ${version}
93+
Commit: ${GIT_COMMIT}
94+
Python version: ${PYTHON_VERSION}
95+
Container: ${CONTAINER}
96+
EOM
97+
)
98+
8699
tool_ver=$(cwltool --version | awk '{ print $2 }')
87100
badgedir=${PWD}/conformance/cwltool/cwl_${version}/cwltool_${tool_ver}
88101
mkdir -p ${PWD}/conformance/cwltool/cwl_${version}/
@@ -98,6 +111,14 @@ EOF
98111
coverage combine "--rcfile=${COVERAGE_RC}" $(find . -name '.coverage.*')
99112
coverage xml "--rcfile=${COVERAGE_RC}"
100113
codecov --file coverage.xml
114+
115+
if [ -d conformance ]
116+
then
117+
git -C conformance add --all
118+
git -C conformance diff-index --quiet HEAD || git -C conformance commit -m "${CONFORMANCE_MSG}"
119+
git -C conformance push http://${jenkins_cwl_conformance}:[email protected]/common-workflow-language/conformance.git
120+
fi
121+
101122
deactivate
102123
popd
103124
done

0 commit comments

Comments
 (0)