Makes Scripts Fail Fast and Loud

This commit is contained in:
Daniel J. Hofmann
2016-10-18 14:05:20 -07:00
committed by Patrick Niklaus
parent 46994e87be
commit 1d994da12b
8 changed files with 32 additions and 6 deletions
+5
View File
@@ -1,10 +1,15 @@
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# Runs the Static Analyzer on the code base.
# This is a wrapper intended to be used with like this:
# 1/ analyze cmake ..
# 2/ analyze cmake --build .
exec scan-build -analyze-headers -no-failure-reports --keep-going --status-bugs \
-enable-checker alpha.core.BoolAssignment \
-enable-checker alpha.core.IdenticalExpr \