File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ integration-test:
70
70
- script :
71
71
name : Run integration tests
72
72
code : |
73
+ function finish {
74
+ # clean up
75
+ yum clean all
76
+
77
+ # store the artifacts so we can download them easily
78
+ tar czvf ${WERCKER_REPORT_ARTIFACTS_DIR}/integration-test-data.tar.gz /pipeline/output/*
79
+ }
80
+ trap finish EXIT
81
+
73
82
# Copy Docker file to OCI host and load into local Docker registry
74
83
# yum install -y openssh-clients
75
84
# echo -e $OCI_K8S_SSHKEY > /tmp/ssh_key
@@ -158,19 +167,8 @@ integration-test:
158
167
echo "$IMAGE_NAME_OPERATOR:$IMAGE_TAG_OPERATOR"
159
168
160
169
# integration tests
161
- set -x
162
170
$WERCKER_SOURCE_DIR/src/integration-tests/bash/run.sh
163
- local exit_code=$?
164
171
165
- # clean up
166
- yum clean all
167
-
168
- # store the artifacts so we can download them easily
169
- tar czvf ${WERCKER_REPORT_ARTIFACTS_DIR}/integration-test-data.tar.gz /pipeline/output/*
170
-
171
- set +x
172
- exit ${exit_code}
173
-
174
172
175
173
# This pipeline runs quality checks
176
174
quality :
You can’t perform that action at this time.
0 commit comments