summaryrefslogtreecommitdiff
path: root/.ci/ci-make-check.sh
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-28 14:09:05 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2018-09-14 11:38:02 +0200
commit70d0fd0d52f4deac18132cc80672aab6d31bb06f (patch)
tree28cc23b01c0923fabab2628af02e50ce6caf60df /.ci/ci-make-check.sh
parentf570e7435e66f0272a8c8a4c5ee4f6db475db41c (diff)
ci: run tests up to 5 times before failing
when travis is throttling resourcse more than usual (resources are dynamically allocated since we are not using a paid service), it can be the case that tests fail even more than usual. this number may need to be increased further if 5 does not provide enough reliability Differential Revision: https://phab.enlightenment.org/D6920
Diffstat (limited to '.ci/ci-make-check.sh')
-rwxr-xr-x.ci/ci-make-check.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/.ci/ci-make-check.sh b/.ci/ci-make-check.sh
index 4ecf5b5a38..edb1752810 100755
--- a/.ci/ci-make-check.sh
+++ b/.ci/ci-make-check.sh
@@ -10,12 +10,14 @@ if [ "$1" = "misc" ] || [ "$1" = "misc-disabled" ] ; then
10 exit 0 10 exit 0
11fi 11fi
12 12
13NUM_TRIES=5
14
13travis_fold check "make check-TESTS" 15travis_fold check "make check-TESTS"
14if [ "$DISTRO" != "" ] ; then 16if [ "$DISTRO" != "" ] ; then
15 for tries in 1 2 3 ; do 17 for tries in $(seq 1 ${NUM_TRIES}); do
16 (docker exec --env EINA_LOG_BACKTRACE="0" --env MAKEFLAGS="-j5 -rR" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) make -j2 -C src/ check-TESTS) && break 18 (docker exec --env EINA_LOG_BACKTRACE="0" --env MAKEFLAGS="-j5 -rR" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) make -j2 -C src/ check-TESTS) && break
17 docker exec --env MAKEFLAGS="-j5 -rR" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) cat src/test-suite.log 19 docker exec --env MAKEFLAGS="-j5 -rR" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) cat src/test-suite.log
18 if [ $tries != 3 ] ; then echo "tests failed, trying again!" ; fi 20 if [ $tries != ${NUM_TRIES} ] ; then echo "tests failed, trying again!" ; fi
19 false 21 false
20 done 22 done
21#else 23#else