summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-05-13 23:32:54 (GMT)
committerMarius Kintel <marius@kintel.net>2013-10-31 02:19:27 (GMT)
commitd37cb95e2ede85193e3f3f5004095964cedc0d35 (patch)
treef82dd40c93e3427c58318a9634448cee738dec06 /scripts
parent2b966f92f247d50f2b3201d492ebc167302fc1bf (diff)
Detect errors mid-way into test run
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis-ci.sh21
1 files changed, 18 insertions, 3 deletions
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
contact: Jan Huwald // Impressum