summaryrefslogtreecommitdiff
path: root/.ci/ci-make-check.sh
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-13 18:31:03 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2018-07-26 08:55:59 +0200
commit5e9b5d315a921f54fa36a1cab921dbe2c166a0b7 (patch)
tree0062287b11d5cadf789801a3b38bfb63eb7f61e0 /.ci/ci-make-check.sh
parentc06be53b0389a2c5d4d8cad89e53dbfe184b4298 (diff)
ci: run make check in build
this adds a script to run make check after the build has finished, repeating tests 3 times to try and reduce false positives from intermittent failure tests ref T7094 Differential Revision: https://phab.enlightenment.org/D6617
Diffstat (limited to '.ci/ci-make-check.sh')
-rwxr-xr-x.ci/ci-make-check.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/.ci/ci-make-check.sh b/.ci/ci-make-check.sh
new file mode 100755
index 0000000000..645065fd0e
--- /dev/null
+++ b/.ci/ci-make-check.sh
@@ -0,0 +1,29 @@
1#!/bin/sh -x
2
3. .ci/travis.sh
4if [ "$1" = "release-ready" ] ; then
5 exit 0
6fi
7travis_fold check "make check"
8if [ "$DISTRO" != "" ] ; then
9 for tries in 1 2 3 ; do
10 (docker exec --env MAKEFLAGS="-j5" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) make -j2 check) && break
11 docker exec --env MAKEFLAGS="-j5" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) cat src/test-suite.log
12 if [ $tries != 3 ] ; then echo "tests failed, trying again!" ; fi
13 false
14 done
15else
16 export PATH="/usr/local/opt/ccache/libexec:$(brew --prefix gettext)/bin:$PATH"
17 for tries in 1 2 3 ; do
18 make -j2 check && break
19 cat src/test-suite.log
20 if [ $tries != 3 ] ; then echo "tests failed, trying again!" ; fi
21 false
22 done
23 #all tests fail all the time currently
24 true
25fi
26ret=$?
27travis_endfold check
28
29exit $ret