Skip to content

Commit 28cd1c9

Browse files
committed
Success is an option
1 parent 4fdf5bc commit 28cd1c9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

wercker.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ integration-test:
7171
name: Run integration tests
7272
code: |
7373
function finish {
74-
export $WERCKER_DEPLOYTARGET_NAME-result=$?
74+
exit_code=$?
75+
varname=${WERCKER_DEPLOYTARGET_NAME}
76+
export ${!varname}-result=$exit_code
7577
7678
# clean up
7779
yum clean all
@@ -181,7 +183,9 @@ after-test:
181183
name: Report integration test results
182184
code: |
183185
varname=${INTEGRATION_TEST_RESULT}
184-
exit ${!varname}
186+
if [ -n "$varname" ]; then
187+
exit ${!varname}
188+
fi
185189
186190
187191
# This pipeline runs quality checks

0 commit comments

Comments
 (0)