Workaround for old automake on Travis Linux images
authorKhaled Hosny <khaledhosny@eglug.org>
Fri, 23 Feb 2018 22:44:07 +0000 (00:44 +0200)
committerKhaled Hosny <khaledhosny@eglug.org>
Sat, 24 Feb 2018 11:31:39 +0000 (13:31 +0200)
https://github.com/harfbuzz/harfbuzz/pull/821#issuecomment-368116538

.ci/fail.sh

index 91701d3..4e0069e 100755 (executable)
@@ -2,11 +2,17 @@
 
 for f in $(find . -name '*.log' -not -name 'config.log'); do
     last=$(tail -1 $f)
-    if [[ $last = FAIL* || $last = *failed* ]]; then
+    if [[ $last = FAIL* ]]; then
         echo '====' $f '===='
         cat $f
+    elif [[ $last = PASS* ]]; then
+        # Do nothing.
+        true
+    else
+       # Travis Linux images has an old automake that does not match the
+       # patterns above, so in case of doubt just print the file.
+        cat $f
     fi
 done
 
-# Intentionally exiting with non-zero.
 exit 1