From 5a48fd39ee503b5d4f503d02d9db23ebae36b9c4 Mon Sep 17 00:00:00 2001 From: Mitsutoshi Aoe Date: Sun, 12 Feb 2017 08:10:03 +0900 Subject: [PATCH] travis: Skip tests which is not buildable --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 11b8f48..9d5f915 100644 --- a/.travis.yml +++ b/.travis.yml @@ -90,7 +90,10 @@ script: - if [ "$TEST" != "--enable-tests" ]; then TESTS=(); fi - shopt -s globstar; RC=true; for T in ${TESTS[@]}; do echo "== $T =="; - if dist-newstyle/build/**/$SRC_BASENAME/**/build/$T/$T; then echo "= $T OK ="; - else echo "= $T FAILED ="; RC=false; fi; done; $RC + ; + if [ -x dist-newstyle/build/**/$SRC_BASENAME/**/build/$T/$T ]; then + if dist-newstyle/build/**/$SRC_BASENAME/**/build/$T/$T; then echo "= $T OK ="; else echo "= $T FAILED ="; RC=false; fi; + fi; + done; $RC # EOF