Skip to content

Commit

Permalink
Merge pull request #2727 from div72/ci-silence-fix
Browse files Browse the repository at this point in the history
ci: do not silently fail
  • Loading branch information
jamescowens authored Dec 24, 2023
2 parents 8874259 + b41de7e commit 1ab0ec3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ci/test_run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@

export LC_ALL=C.UTF-8

# latest_stage.log will contain logs for a silenced stage if it
# fails.
trap "cat latest_stage.log" EXIT

set -o errexit; source ./ci/test/00_setup_env.sh
set -o errexit; source ./ci/test/03_before_install.sh
set -o errexit; source ./ci/test/04_install.sh &> 04.log || (cat 04.log && exit 1)
set -o errexit; source ./ci/test/05_before_script.sh &> 05.log || (cat 05.log && exit 1)
set -o errexit; source ./ci/test/04_install.sh &> latest_stage.log
set -o errexit; source ./ci/test/05_before_script.sh &> latest_stage.log
echo -n > latest_stage.log
set -o errexit; source ./ci/test/06_script_a.sh
set -o errexit; source ./ci/test/06_script_b.sh

0 comments on commit 1ab0ec3

Please sign in to comment.