mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
ci: make CI job fail when check-deps.sh script fails
Previously the check-deps.sh would write information about unexpected dependencies to stderr, but return exit code 0, so the error would be ignored by CI. Now it will return code 1 and cause CI to fail if unexpected dependencies are detected.
This commit is contained in:
parent
d51edecddc
commit
fd38711217
@ -194,7 +194,10 @@ cd "$BUILD_DIR/src"
|
|||||||
extract_symbols "$TEMP_DIR"
|
extract_symbols "$TEMP_DIR"
|
||||||
if check_libraries "$TEMP_DIR"; then
|
if check_libraries "$TEMP_DIR"; then
|
||||||
echo "Success! No unexpected dependencies were detected."
|
echo "Success! No unexpected dependencies were detected."
|
||||||
|
RET=0
|
||||||
else
|
else
|
||||||
echo >&2 "Error: Unexpected dependencies were detected. Check previous output."
|
echo >&2 "Error: Unexpected dependencies were detected. Check previous output."
|
||||||
|
RET=1
|
||||||
fi
|
fi
|
||||||
rm -r "$TEMP_DIR"
|
rm -r "$TEMP_DIR"
|
||||||
|
exit $RET
|
||||||
|
Loading…
Reference in New Issue
Block a user