summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-08 16:56:44 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-08 16:56:52 +0200
commit2fd009d23810939a77ddc1716ab4250ee18826fa (patch)
treeea5da67d7c4ed462182a9456a0d33e182055d5d7 /.gitlab-ci.yml
parent722211cddfaeba38f678cc523755af1ce645cb5a (diff)
downloadgitlab-ce-2fd009d23810939a77ddc1716ab4250ee18826fa.tar.gz
Retry spinach tests in case of failure using rerun reporter
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 1 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ef3081395a..965de5e50e9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -89,9 +89,7 @@ update-knapsack:
- export KNAPSACK_REPORT_PATH=knapsack/spinach_node_${CI_NODE_INDEX}_${CI_NODE_TOTAL}_report.json
- export KNAPSACK_GENERATE_REPORT=true
- cp knapsack/spinach_report.json ${KNAPSACK_REPORT_PATH}
- - knapsack spinach "-r rerun"
- # retry failed tests 3 times
- - retry '[ ! -e tmp/spinach-rerun.txt ] || bin/spinach -r rerun $(cat tmp/spinach-rerun.txt)'
+ - knapsack spinach "-r rerun" || retry '[ ! -e tmp/spinach-rerun.txt ] || bin/spinach -r rerun $(cat tmp/spinach-rerun.txt)'
artifacts:
paths:
- knapsack/