mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 15:44:34 +02:00
CI build_examples: Correctly detect example build failures
"pipefail" regression when fail-on-warnings was added...
This commit is contained in:
@@ -30,10 +30,11 @@ for example in ${IDF_PATH}/examples/*; do
|
|||||||
# build non-verbose first
|
# build non-verbose first
|
||||||
BUILDLOG=$(mktemp -t examplebuild.XXXX.log)
|
BUILDLOG=$(mktemp -t examplebuild.XXXX.log)
|
||||||
(
|
(
|
||||||
|
set -o pipefail # so result of make all isn't lost when piping to tee
|
||||||
set -e
|
set -e
|
||||||
make clean defconfig
|
make clean defconfig
|
||||||
make all 2>&1 | tee $BUILDLOG
|
make $* all 2>&1 | tee $BUILDLOG
|
||||||
) || (RESULT=$?; make V=1) # only build verbose if there's an error
|
) || { RESULT=$?; make V=1; } # only build verbose if there's an error
|
||||||
popd
|
popd
|
||||||
EXAMPLE_NUM=$(( $EXAMPLE_NUM + 1 ))
|
EXAMPLE_NUM=$(( $EXAMPLE_NUM + 1 ))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user