forked from enlightenment/efl
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:
parent
af04065067
commit
0ed64caa36
|
@ -2,17 +2,13 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
. .ci/travis.sh
|
. .ci/travis.sh
|
||||||
|
|
||||||
|
if [ "$1" = "coverity" ] || [ "$1" = "mingw" ] || [ "$1" = "release-ready" ] ; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
travis_fold compile_test compile_test
|
travis_fold compile_test compile_test
|
||||||
if [ "$DISTRO" != "" ] ; then
|
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
|
docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-example.sh
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,25 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
. .ci/travis.sh
|
. .ci/travis.sh
|
||||||
if [ "$1" = "release-ready" ] ; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$1" = "mingw" ] ; then
|
if [ "$1" = "release-ready" ] || [ "$1" = "mingw" ] || [ "$1" = "coverity" ] || [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ]; then
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$1" = "coverity" ] ; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
#T7151
|
|
||||||
if [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ] ; then
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NUM_TRIES=5
|
NUM_TRIES=5
|
||||||
|
|
||||||
travis_fold check "ninja test"
|
travis_fold check "ninja test"
|
||||||
if [ "$DISTRO" != "" ] ; then
|
if [ "$DISTRO" != "" ] ; then
|
||||||
for tries in $(seq 1 ${NUM_TRIES}); do
|
for tries in $(seq 1 ${NUM_TRIES}); do
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
. .ci/travis.sh
|
. .ci/travis.sh
|
||||||
|
|
||||||
if [ "$1" != "release-ready" ] ; then
|
if [ "$1" != "release-ready" ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
travis_fold distcheck "ninja dist"
|
travis_fold distcheck "ninja dist"
|
||||||
if [ "$DISTRO" != "" ] ; then
|
if [ "$DISTRO" != "" ] ; then
|
||||||
docker exec --env EIO_MONITOR_POLL=1 --env CC="ccache gcc" \
|
docker exec --env EIO_MONITOR_POLL=1 --env CC="ccache gcc" \
|
||||||
|
|
|
@ -2,12 +2,11 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
. .ci/travis.sh
|
. .ci/travis.sh
|
||||||
if [ "$1" = "release-ready" ] ; then
|
|
||||||
exit 0
|
if [ "$1" = "release-ready" ] || [ "$1" = "coverity" ] ; then
|
||||||
fi
|
|
||||||
if [ "$1" = "coverity" ] ; then
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
travis_fold install "ninja install"
|
travis_fold install "ninja install"
|
||||||
if [ "$1" = "asan" ]; then
|
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
|
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
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
. .ci/travis.sh
|
. .ci/travis.sh
|
||||||
|
|
||||||
if [ "$1" = "release-ready" ] ; then
|
if [ "$1" = "release-ready" ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
travis_fold ninja ninja
|
travis_fold ninja ninja
|
||||||
if [ "$1" = "asan" ]; then
|
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
|
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
|
||||||
|
|
Loading…
Reference in New Issue