diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/travis-ci.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/travis-ci.sh b/scripts/travis-ci.sh new file mode 100755 index 0000000..9d4258a --- /dev/null +++ b/scripts/travis-ci.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +qmake && make -j4 +if [[ $? != 0 ]]; then + echo "Error building OpenSCAD executable" + exit 1 +fi +cd tests +cmake . +if [[ $? != 0 ]]; then + echo "Error configuring test suite" + exit 1 +fi +make -j2 +if [[ $? != 0 ]]; then + echo "Error building test suite" + exit 1 +fi +ctest -j8 +if [[ $? != 0 ]]; then + echo "Test failure" + exit 1 +fi |