2018-07-13 21:45:05 -07:00
|
|
|
#!/bin/sh
|
2018-07-13 15:31:03 -07:00
|
|
|
|
|
|
|
. .ci/travis.sh
|
|
|
|
if [ "$1" = "release-ready" ] ; then
|
|
|
|
exit 0
|
|
|
|
fi
|
2018-07-13 21:46:58 -07:00
|
|
|
|
2018-08-22 05:51:12 -07:00
|
|
|
if [ "$1" = "mingw" ] ; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2018-07-13 21:46:58 -07:00
|
|
|
#T7151
|
2018-11-19 05:22:10 -08:00
|
|
|
if [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ] ; then
|
2018-07-13 21:46:58 -07:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2018-08-28 11:09:05 -07:00
|
|
|
NUM_TRIES=5
|
|
|
|
|
2018-07-13 21:45:05 -07:00
|
|
|
travis_fold check "make check-TESTS"
|
2018-11-07 08:06:10 -08:00
|
|
|
if [ "$BUILDSYSTEM" = "ninja" ] ; then
|
|
|
|
if [ "$DISTRO" != "" ] ; then
|
2018-12-02 02:15:47 -08:00
|
|
|
# disable them for this distros, after meson 0.49 is out, this can be removed
|
|
|
|
# https://github.com/mesonbuild/meson/commit/253c581412d7f2b09af353dd83d943454bd555be
|
2019-01-22 08:49:32 -08:00
|
|
|
if [ "$DISTRO" != "Ubuntu1810" ] && [ "$DISTRO" != "Debian96" ]; then
|
2018-12-02 02:15:47 -08:00
|
|
|
for tries in $(seq 1 ${NUM_TRIES}); do
|
2019-03-28 08:26:55 -07:00
|
|
|
(docker exec --env EINA_LOG_BACKTRACE="0" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) meson test -C build --wrapper dbus-launch ) && break
|
|
|
|
docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) cat src/test-suite.log
|
2018-12-02 02:15:47 -08:00
|
|
|
if [ $tries != ${NUM_TRIES} ] ; then echo "tests failed, trying again!" ; fi
|
|
|
|
false
|
|
|
|
done
|
|
|
|
fi
|
2018-11-07 08:06:10 -08:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
if [ "$DISTRO" != "" ] ; then
|
|
|
|
for tries in $(seq 1 ${NUM_TRIES}); do
|
|
|
|
(docker exec --env EINA_LOG_BACKTRACE="0" --env MAKEFLAGS="-j5 -rR" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) make -j2 -C src/ check-TESTS) && break
|
|
|
|
docker exec --env MAKEFLAGS="-j5 -rR" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) cat src/test-suite.log
|
|
|
|
if [ $tries != ${NUM_TRIES} ] ; 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 -C src/ check-TESTS && break
|
|
|
|
#cat src/test-suite.log
|
|
|
|
#if [ $tries != 3 ] ; then echo "tests failed, trying again!" ; fi
|
|
|
|
#false
|
|
|
|
#done
|
|
|
|
fi
|
2018-07-13 15:31:03 -07:00
|
|
|
fi
|
|
|
|
ret=$?
|
|
|
|
travis_endfold check
|
|
|
|
|
|
|
|
exit $ret
|