File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -70,16 +70,20 @@ integration-test:
70
70
- script :
71
71
name : Run integration tests
72
72
code : |
73
- function finish {
74
- exit_code=$?
75
- varname=${WERCKER_DEPLOYTARGET_NAME}
76
- export ${!varname}-result=$exit_code
77
-
73
+ function cleanup_and_store {
78
74
# clean up
79
75
yum clean all
80
76
81
77
# store the artifacts so we can download them easily
82
78
tar czvf ${WERCKER_REPORT_ARTIFACTS_DIR}/integration-test-data.tar.gz /pipeline/output/*
79
+ }
80
+
81
+ function finish {
82
+ exit_code=$?
83
+ varname=${WERCKER_DEPLOYTARGET_NAME}
84
+ export ${!varname}-result=$exit_code
85
+
86
+ cleanup_and_store
83
87
exit 0
84
88
}
85
89
trap finish EXIT
@@ -174,6 +178,7 @@ integration-test:
174
178
# integration tests
175
179
$WERCKER_SOURCE_DIR/src/integration-tests/bash/run.sh
176
180
181
+ cleanup_and_store
177
182
178
183
# This pipeline runs quality checks
179
184
quality :
You can’t perform that action at this time.
0 commit comments