summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 @@
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
diff --git a/.travis.yml b/.travis.yml
index 498bce551f..fa61e42884 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -100,6 +100,7 @@ script:
100 .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE" 100 .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
101 fi 101 fi
102 - .ci/ci-make-install.sh "$CI_BUILD_TYPE" 102 - .ci/ci-make-install.sh "$CI_BUILD_TYPE"
103 - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
103 - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE" 104 - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
104 - | 105 - |
105 if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then 106 if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then