summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-01-27 21:48:07 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2020-01-29 16:44:59 +0000
commitf4a8824164820c428ca9c686337f462a4a9ff43d (patch)
treee1221d8f40141b16f3893b651608e301506febab /scripts
parentec306ff72c08e2b8db9f341b5c31031f578e9ff8 (diff)
downloadqbs-f4a8824164820c428ca9c686337f462a4a9ff43d.tar.gz
Fail travis job if clang-tidy returned non-zero code
The script falsely returned zero code even if clang-tidy reported an error This amends f7117d080ddce4b5f692e3a60ceddc9fe1761888 Change-Id: I6f77bae3304f7bb6ca58c2de29089c3e3d910c1b Reviewed-by: Richard Weickelt <richard@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-analyzer.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/run-analyzer.sh b/scripts/run-analyzer.sh
index 9075ff5b3..8d45cc9f5 100755
--- a/scripts/run-analyzer.sh
+++ b/scripts/run-analyzer.sh
@@ -84,6 +84,7 @@ if [ ! -f "$QBS_SRC_DIR/qbs.qbs" ]; then
fi
set -e
+set -o pipefail
qbs resolve -f "$QBS_SRC_DIR/qbs.qbs" $BUILD_OPTIONS
qbs build -f "$QBS_SRC_DIR/qbs.qbs" $BUILD_OPTIONS