File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 81
81
then
82
82
EXTRA=" EXTRA=${EXTRA} "
83
83
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 ]
85
85
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
+
86
99
tool_ver=$( cwltool --version | awk ' { print $2 }' )
87
100
badgedir=${PWD} /conformance/cwltool/cwl_${version} /cwltool_${tool_ver}
88
101
mkdir -p ${PWD} /conformance/cwltool/cwl_${version} /
98
111
coverage combine " --rcfile=${COVERAGE_RC} " $( find . -name ' .coverage.*' )
99
112
coverage xml " --rcfile=${COVERAGE_RC} "
100
113
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
+
101
122
deactivate
102
123
popd
103
124
done
You can’t perform that action at this time.
0 commit comments