[libclc] 46/92: travis: Make sure we report failure even if only earlier checked files fail
    Andreas Boll 
    aboll-guest at moszumanska.debian.org
       
    Mon Nov  6 15:12:00 UTC 2017
    
    
  
This is an automated email from the git hooks/post-receive script.
aboll-guest pushed a commit to branch master
in repository libclc.
commit 50e930290aea604e16d9e8ac668997fdaccd6f71
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date:   Sun Oct 8 20:07:58 2017 +0000
    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>
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@315193 91177308-0d34-0410-b5e6-96231b3b80d8
---
 .travis.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 2f058a7..84cf407 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
    
    
More information about the Pkg-opencl-commits
mailing list