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@rutgers.edu>
llvm-svn: 315193
This commit is contained in:
Jan Vesely 2017-10-08 20:07:58 +00:00
parent 136381dc38
commit 3c51ae5bd9
1 changed files with 5 additions and 3 deletions

View File

@ -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