CI: fix CI scripts to fail if a command fails.

If compilation failed, we didn't stop (though except for fuzzing, we
would fail when we try to run the tests).

Also use make -s instead of redirecting make ooutput.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-07-25 16:30:01 +09:30 committed by neil saitug
parent 8f6afedafe
commit d0c321b43a

View File

@ -21,6 +21,9 @@ export VALGRIND=${VALGRIND:-0}
export FUZZING=${FUZZING:-0}
export LIGHTNINGD_POSTGRES_NO_VACUUM=1
# Fail if any commands fail.
set -e
pip3 install --user poetry
poetry config virtualenvs.create false --local
poetry install
@ -89,7 +92,7 @@ then
./configure CC="$TARGET_HOST-gcc" --enable-static
make -j32 CC="$TARGET_HOST-gcc" > /dev/null
make -s -j32 CC="$TARGET_HOST-gcc"
else
eatmydata make -j32
# shellcheck disable=SC2086