Mesa (master): travis: rework "if test" blocks in the script section

Emil Velikov evelikov at kemper.freedesktop.org
Sat Apr 29 13:40:24 UTC 2017


Module: Mesa
Branch: master
Commit: abcfea23add91ffa7013a3c862712cfdaefcf8b0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=abcfea23add91ffa7013a3c862712cfdaefcf8b0

Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Thu Apr  6 14:23:36 2017 +0100

travis: rework "if test" blocks in the script section

Split the "if test" blocks so that we get more sensible output in case
of a failure.

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

---

 .travis.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 8921429c7e..a4fe00d802 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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




More information about the mesa-commit mailing list