diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-13 23:32:54 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-10-31 02:19:27 (GMT) |
commit | d37cb95e2ede85193e3f3f5004095964cedc0d35 (patch) | |
tree | f82dd40c93e3427c58318a9634448cee738dec06 /scripts | |
parent | 2b966f92f247d50f2b3201d492ebc167302fc1bf (diff) |
Detect errors mid-way into test run
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/travis-ci.sh | 21 |
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 |