From b434f24611b37c9dcf45017cec5276acad4de2dc Mon Sep 17 00:00:00 2001 From: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com> Date: Wed, 20 Feb 2019 10:49:05 +0100 Subject: [PATCH] fix(CI): break on errors in CI scripts (#1504) - break on errors by adding `set -e` to the CI scripts - increase build timeout to 2700 seconds (45 minutes) --- apps/ci/ci-before_install.sh | 2 ++ apps/ci/ci-install.sh | 2 ++ apps/ci/ci-script.sh | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/ci/ci-before_install.sh b/apps/ci/ci-before_install.sh index ad071eeb9..8f5342c02 100755 --- a/apps/ci/ci-before_install.sh +++ b/apps/ci/ci-before_install.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ "$TRAVIS_BUILD_ID" = "1" ] then export CCOMPILERC="clang-3.8" diff --git a/apps/ci/ci-install.sh b/apps/ci/ci-install.sh index 2840d4a4d..3614e0fd1 100755 --- a/apps/ci/ci-install.sh +++ b/apps/ci/ci-install.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + echo "install OS deps (apt-get)" bash ./acore.sh "install-deps" diff --git a/apps/ci/ci-script.sh b/apps/ci/ci-script.sh index 8e2c1bfa8..91e7e0e88 100755 --- a/apps/ci/ci-script.sh +++ b/apps/ci/ci-script.sh @@ -1,9 +1,11 @@ #!/bin/bash +set -e + echo "compile core" export CCACHE_CPP2=true ccache -s -timeout 2580 bash ./acore.sh "compiler" "all" +timeout 2700 bash ./acore.sh "compiler" "all" ccache -s if [ "$TRAVIS_BUILD_ID" = "1" ]