summaryrefslogtreecommitdiff
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
parentc06be53b0389a2c5d4d8cad89e53dbfe184b4298 (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 T7094 Differential Revision: https://phab.enlightenment.org/D6617
-rwxr-xr-x.ci/ci-make-check.sh29
-rw-r--r--.travis.yml1
2 files changed, 30 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
diff --git a/.travis.yml b/.travis.yml
index 498bce551f..fa61e42884 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -100,6 +100,7 @@ script:
.ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
fi
- .ci/ci-make-install.sh "$CI_BUILD_TYPE"
+ - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
- .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
- |
if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then