travis: rework "if test" blocks in the script section
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 6 Apr 2017 13:23:36 +0000 (14:23 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 29 Apr 2017 12:35:17 +0000 (13:35 +0100)
Split the "if test" blocks so that we get more sensible output in case
of a failure.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
.travis.yml

index 8921429c7e92739d679ff3b8cba17bb97c4c1272..a4fe00d8023dc407ecf86d65f74980ea1e6bcbed 100644 (file)
@@ -114,6 +114,8 @@ script:
         --disable-llvm-shared-libs
         ;
       make && make check;
-    elif test x$BUILD = xscons; then
+    fi
+
+  - if test "x$BUILD" = xscons; then
       scons llvm=1 && scons llvm=1 check;
     fi