From 5e9b5d315a921f54fa36a1cab921dbe2c166a0b7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 13 Jul 2018 18:31:03 -0400 Subject: [PATCH] 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 --- .ci/ci-make-check.sh | 29 +++++++++++++++++++++++++++++ .travis.yml | 1 + 2 files changed, 30 insertions(+) create mode 100755 .ci/ci-make-check.sh 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