File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,14 @@ integration-test:
71
71
name : Run integration tests
72
72
code : |
73
73
function finish {
74
+ export {$WERCKER_DEPLOYTARGET_NAME}-result=$?
75
+
74
76
# clean up
75
77
yum clean all
76
78
77
79
# store the artifacts so we can download them easily
78
80
tar czvf ${WERCKER_REPORT_ARTIFACTS_DIR}/integration-test-data.tar.gz /pipeline/output/*
81
+ exit 0
79
82
}
80
83
trap finish EXIT
81
84
@@ -170,6 +173,17 @@ integration-test:
170
173
$WERCKER_SOURCE_DIR/src/integration-tests/bash/run.sh
171
174
172
175
176
+ # This pipeline reports results of integration test. It is separated so that integration test
177
+ # pipeline succeeds and stores results even if tests actually failed
178
+ after-test :
179
+ steps :
180
+ - script :
181
+ name : Report integration test results
182
+ code : |
183
+ varname=${INTEGRATION_TEST_RESULT}
184
+ exit ${!varname}
185
+
186
+
173
187
# This pipeline runs quality checks
174
188
quality :
175
189
steps :
You can’t perform that action at this time.
0 commit comments