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@collabora.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
(cherry picked from commit abcfea23ad)
This commit is contained in:
Emil Velikov 2017-04-06 14:23:36 +01:00 committed by Emil Velikov
parent 5e8e015db3
commit 27d4beb2e1

View 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