ci: refactor the early exit on specific build jobs

Should be no functional change only making all early checks a bit
shorter.

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10866
This commit is contained in:
Stefan Schmidt 2019-12-12 11:05:16 +01:00 committed by Marcel Hollerbach
parent af04065067
commit 0ed64caa36
5 changed files with 14 additions and 27 deletions

View File

@ -2,17 +2,13 @@
set -e
. .ci/travis.sh
if [ "$1" = "coverity" ] || [ "$1" = "mingw" ] || [ "$1" = "release-ready" ] ; then
exit 0
fi
travis_fold compile_test compile_test
if [ "$DISTRO" != "" ] ; then
if [ "$1" = "coverity" ] ; then
exit 0
fi
if [ "$1" = "mingw" ] ; then
exit 0
fi
if [ "$1" = "release-ready" ] ; then
exit 0
fi
docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-example.sh
else
exit 0

View File

@ -1,25 +1,13 @@
#!/bin/sh
set -e
. .ci/travis.sh
if [ "$1" = "release-ready" ] ; then
exit 0
fi
if [ "$1" = "mingw" ] ; then
exit 0
fi
if [ "$1" = "coverity" ] ; then
exit 0
fi
#T7151
if [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ] ; then
if [ "$1" = "release-ready" ] || [ "$1" = "mingw" ] || [ "$1" = "coverity" ] || [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ]; then
exit 0
fi
NUM_TRIES=5
travis_fold check "ninja test"
if [ "$DISTRO" != "" ] ; then
for tries in $(seq 1 ${NUM_TRIES}); do

View File

@ -2,9 +2,11 @@
set -e
. .ci/travis.sh
if [ "$1" != "release-ready" ] ; then
exit 0
fi
travis_fold distcheck "ninja dist"
if [ "$DISTRO" != "" ] ; then
docker exec --env EIO_MONITOR_POLL=1 --env CC="ccache gcc" \

View File

@ -2,12 +2,11 @@
set -e
. .ci/travis.sh
if [ "$1" = "release-ready" ] ; then
exit 0
fi
if [ "$1" = "coverity" ] ; then
if [ "$1" = "release-ready" ] || [ "$1" = "coverity" ] ; then
exit 0
fi
travis_fold install "ninja install"
if [ "$1" = "asan" ]; then
docker exec --env EIO_MONITOR_POLL=1 --env ASAN_OPTIONS=abort_on_error=0 --env LSAN_OPTIONS=suppressions=/src/.ci/asan-ignore-leaks.supp $(cat $HOME/cid) ninja -C build install

View File

@ -2,9 +2,11 @@
set -e
. .ci/travis.sh
if [ "$1" = "release-ready" ] ; then
exit 0
fi
travis_fold ninja ninja
if [ "$1" = "asan" ]; then
docker exec --env EIO_MONITOR_POLL=1 --env ASAN_OPTIONS=abort_on_error=0 --env LSAN_OPTIONS=suppressions=/src/.ci/asan-ignore-leaks.supp $(cat $HOME/cid) ninja -C build