efl/.ci/ci-make-check.sh

46 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
set -e
if [ "$1" = "release-ready" ] || [ "$1" = "mingw" ] || [ "$1" = "coverity" ] || [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ] ; then
exit 0
fi
NUM_TRIES=5
if [ "$1" = "codecov" ] ; then
travis_fold start "codecov"
travis_time_start "codecov"
for tries in $(seq 1 ${NUM_TRIES}); do
export EFL_TEST_ECORE_CON_IPV6=1
meson test -t 120 -C build --wrapper dbus-launch && break
cat build/meson-logs/testlog-dbus-launch.txt
if [ $tries != ${NUM_TRIES} ] ; then echo "tests failed, trying again!" ; fi
false
done
git clone --depth=1 --branch=devs/stefan/ci-ubuntu-bionic https://git.enlightenment.org/tools/exactness-elm-data.git
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
sudo ldconfig
EINA_LOG_LEVELS_GLOB=eina_*:0,ecore*:0,efreet*:0,eldbus:0,elementary:0 exactness -j 20 -b exactness-elm-data/default-profile -p exactness-elm-data/default-profile/ci-ubuntu-bionic-tests.txt
curl -s https://codecov.io/bash | bash -s -
travis_time_finish "codecov"
travis_fold end "codecov"
exit 0
fi
travis_fold start "ninja-test"
travis_time_start "ninja-test"
if [ "$DISTRO" != "" ] ; then
for tries in $(seq 1 ${NUM_TRIES}); do
(docker exec --env EINA_LOG_BACKTRACE="0" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) meson test -t 120 -C build --wrapper dbus-launch ) && break
docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) cat build/meson-logs/testlog-dbus-launch.txt
if [ $tries != ${NUM_TRIES} ] ; then echo "tests failed, trying again!" ; fi
false
done
fi
ret=$?
travis_time_finish "ninja-test"
travis_fold end "ninja-test"
exit $ret