aboutsummaryrefslogtreecommitdiffstats
path: root/.ci
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
parentci: add folding for travis logs (diff)
downloadefl-5e9b5d315a921f54fa36a1cab921dbe2c166a0b7.tar.gz
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 https://phab.enlightenment.org/T7094 Differential Revision: https://phab.enlightenment.org/D6617
Diffstat (limited to '.ci')
-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 @@
+#!/bin/sh -x
+
+. .ci/travis.sh
+if [ "$1" = "release-ready" ] ; then
+ exit 0
+fi
+travis_fold check "make check"
+if [ "$DISTRO" != "" ] ; then
+ for tries in 1 2 3 ; do
+ (docker exec --env MAKEFLAGS="-j5" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) make -j2 check) && break
+ docker exec --env MAKEFLAGS="-j5" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) cat src/test-suite.log
+ if [ $tries != 3 ] ; then echo "tests failed, trying again!" ; fi
+ false
+ done
+else
+ export PATH="/usr/local/opt/ccache/libexec:$(brew --prefix gettext)/bin:$PATH"
+ for tries in 1 2 3 ; do
+ make -j2 check && break
+ cat src/test-suite.log
+ if [ $tries != 3 ] ; then echo "tests failed, trying again!" ; fi
+ false
+ done
+ #all tests fail all the time currently
+ true
+fi
+ret=$?
+travis_endfold check
+
+exit $ret