summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-12-09 05:47:02 (GMT)
committerMarius Kintel <marius@kintel.net>2013-12-09 05:47:02 (GMT)
commit3bd224b990f6d6b4c51072bf0c3ae895fbfe707e (patch)
tree6690951e4f814b87a1a372a913b75ceda1f6cc1a /scripts
parent33c34b6f7c43d19bbfa3bf91e7b577bcc062e5bd (diff)
parent435e0c021c5018ee5de69d3218c3e31c8ab75be5 (diff)
Merge remote-tracking branch 'origin/travis'
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis-ci.sh23
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
contact: Jan Huwald // Impressum