summaryrefslogtreecommitdiff
path: root/.ci/ci-make-check.sh
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-12-11 15:51:19 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-06-03 15:21:38 +0200
commit26fa4ea355623fa0b3fc3ee6e09d4856a09b33ff (patch)
tree795afa5cd32d43e2fae816bce41a0fddae8c3643 /.ci/ci-make-check.sh
parent5c5f0692fce02a02be611f892eb0471c8ce8a0e8 (diff)
ci: log time in every fold start and end
Annotating the build log with timings will help us to understand better where the time is spend during the builds and see areas to optimize. Switching over to the "native" bash functions in Travis, so switching all scripts to bash. Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11913
Diffstat (limited to '.ci/ci-make-check.sh')
-rwxr-xr-x.ci/ci-make-check.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/.ci/ci-make-check.sh b/.ci/ci-make-check.sh
index c47eb24627..ffdb56ab7f 100755
--- a/.ci/ci-make-check.sh
+++ b/.ci/ci-make-check.sh
@@ -1,7 +1,6 @@
1#!/bin/sh 1#!/bin/bash
2 2
3set -e 3set -e
4. .ci/travis.sh
5 4
6if [ "$1" = "release-ready" ] || [ "$1" = "mingw" ] || [ "$1" = "coverity" ] || [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ] ; then 5if [ "$1" = "release-ready" ] || [ "$1" = "mingw" ] || [ "$1" = "coverity" ] || [ "$1" = "options-enabled" ] || [ "$1" = "options-disabled" ] ; then
7 exit 0 6 exit 0
@@ -9,6 +8,8 @@ fi
9 8
10NUM_TRIES=5 9NUM_TRIES=5
11 10
11travis_fold start "ninja-test"
12travis_time_start "ninja-test"
12if [ "$1" = "codecov" ] ; then 13if [ "$1" = "codecov" ] ; then
13 for tries in $(seq 1 ${NUM_TRIES}); do 14 for tries in $(seq 1 ${NUM_TRIES}); do
14 export EFL_TEST_ECORE_CON_IPV6=1 15 export EFL_TEST_ECORE_CON_IPV6=1
@@ -21,7 +22,6 @@ if [ "$1" = "codecov" ] ; then
21 exit 0 22 exit 0
22fi 23fi
23 24
24travis_fold check "ninja test"
25if [ "$DISTRO" != "" ] ; then 25if [ "$DISTRO" != "" ] ; then
26 for tries in $(seq 1 ${NUM_TRIES}); do 26 for tries in $(seq 1 ${NUM_TRIES}); do
27 (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 27 (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
@@ -31,6 +31,7 @@ if [ "$DISTRO" != "" ] ; then
31 done 31 done
32fi 32fi
33ret=$? 33ret=$?
34travis_endfold check 34travis_time_finish "ninja-test"
35travis_fold end "ninja-test"
35 36
36exit $ret 37exit $ret