[libclc] r315193 - travis: Make sure we report failure even if only earlier checked files fail
Jan Vesely via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 8 13:07:58 PDT 2017
Author: jvesely
Date: Sun Oct 8 13:07:58 2017
New Revision: 315193
URL: http://llvm.org/viewvc/llvm-project?rev=315193&view=rev
Log:
travis: Make sure we report failure even if only earlier checked files fail
for loop would only report status of the last command
v2: return '1'
call test instead of '['
Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Modified:
libclc/trunk/.travis.yml
Modified: libclc/trunk/.travis.yml
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/.travis.yml?rev=315193&r1=315192&r2=315193&view=diff
==============================================================================
--- libclc/trunk/.travis.yml (original)
+++ libclc/trunk/.travis.yml Sun Oct 8 13:07:58 2017
@@ -55,6 +55,8 @@ matrix:
script:
- $PYTHON ./configure.py --with-llvm-config=$LLVM_CONFIG --with-cxx-compiler=$CXX && make -j4
- - for f in $CHECK_FILES; do
- ./check_external_calls.sh built_libs/$f;
- done
+ - ret=0;
+ for f in $CHECK_FILES; do
+ ./check_external_calls.sh built_libs/$f || ret=1;
+ done;
+ test $ret -eq 0
More information about the cfe-commits
mailing list