mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
travis: Fail build if any command in if statement fails.
Travis is checking the exit code of the entire if statement. Fixes:64ffc289be("travis: add MacOS Scons build") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Acked-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit029b07b2ad)
This commit is contained in:
parent
529db83e7b
commit
6ac1d9b46e
1 changed files with 4 additions and 4 deletions
|
|
@ -53,10 +53,10 @@ install:
|
|||
script:
|
||||
- if test "x$BUILD" = xmeson; then
|
||||
meson _build -Dbuild-tests=true;
|
||||
ninja -C _build;
|
||||
ninja -C _build test;
|
||||
ninja -C _build || travis_terminate 1;
|
||||
ninja -C _build test || travis_terminate 1;
|
||||
fi
|
||||
- if test "x$BUILD" = xscons; then
|
||||
scons;
|
||||
scons check;
|
||||
scons || travis_terminate 1;
|
||||
scons check || travis_terminate 1;
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue