Skip to content

Commit 07fa8b6

Browse files
committed
One last try
1 parent 09a109f commit 07fa8b6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

wercker.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,20 @@ integration-test:
7070
- script:
7171
name: Run integration tests
7272
code: |
73-
function finish {
74-
exit_code=$?
75-
varname=${WERCKER_DEPLOYTARGET_NAME}
76-
export ${!varname}-result=$exit_code
77-
73+
function cleanup_and_store {
7874
# clean up
7975
yum clean all
8076
8177
# store the artifacts so we can download them easily
8278
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
8387
exit 0
8488
}
8589
trap finish EXIT
@@ -174,6 +178,7 @@ integration-test:
174178
# integration tests
175179
$WERCKER_SOURCE_DIR/src/integration-tests/bash/run.sh
176180
181+
cleanup_and_store
177182
178183
# This pipeline runs quality checks
179184
quality:

0 commit comments

Comments
 (0)