From d37cb95e2ede85193e3f3f5004095964cedc0d35 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 13 May 2013 19:32:54 -0400 Subject: Detect errors mid-way into test run diff --git a/scripts/travis-ci.sh b/scripts/travis-ci.sh index a5ea97f..8aa5d1e 100755 --- a/scripts/travis-ci.sh +++ b/scripts/travis-ci.sh @@ -1,8 +1,23 @@ #!/bin/bash -qmake -make +qmake && make +if [[ $? != 0 ]]; then + echo "Error building OpenSCAD executable" + exit 1 +fi cd tests -cmake . +cmake . +if [[ $? != 0 ]]; then + echo "Error configuring test suite" + exit 1 +fi make +if [[ $? != 0 ]]; then + echo "Error building test suite" + exit 1 +fi ctest +if [[ $? != 0 ]]; then + echo "Test failure" + exit 1 +fi -- cgit v0.10.1