Skip to content

Commit ba25d05

Browse files
committed
Push conformance badges to commonwl/conformance repository
1 parent fc6ca8b commit ba25d05

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

jenkins.bash

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ EOF
8383
fi
8484
if [[ "$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+
pushd conformance
90+
git config user.email "[email protected]"
91+
git config user.name "CWL Jenkins build bot"
92+
popd
93+
8694
tool_ver=$(cwltool --version | awk '{ print $2 }')
8795
badgedir=${PWD}/conformance/cwltool/cwl_${version}/cwltool_${tool_ver}
8896
mkdir -p ${PWD}/conformance/cwltool/cwl_${version}/
@@ -98,6 +106,16 @@ EOF
98106
coverage combine "--rcfile=${COVERAGE_RC}" $(find . -name '.coverage.*')
99107
coverage xml "--rcfile=${COVERAGE_RC}"
100108
codecov --file coverage.xml
109+
110+
if [ -d conformance ]
111+
then
112+
pushd conformance
113+
git add --all
114+
git diff-index --quiet HEAD || git commit -m "CWL Jenkins Build bot"
115+
git push http://${jenkins_cwl_conformance}:[email protected]/common-workflow-language/conformance.git
116+
popd
117+
fi
118+
101119
deactivate
102120
popd
103121
done

0 commit comments

Comments
 (0)