summaryrefslogtreecommitdiff
path: root/scripts/travis-ci.sh
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2013-12-15 21:32:06 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2013-12-15 21:32:06 (GMT)
commit3b3ef44f6636affef8138f4c8b7dec1333f50377 (patch)
tree977698cc6d2d56775f140967792ad637db03490f /scripts/travis-ci.sh
parent5271b345bc755f37e98d7f497f6686d34990fa5c (diff)
parentc7cea0082e427f3c53985845f05e8737873c8a25 (diff)
Merge branch 'master' of github.com:openscad/openscad into planar
Conflicts: src/CGAL_Nef_polyhedron.cc tests/CMakeLists.txt
Diffstat (limited to 'scripts/travis-ci.sh')
-rwxr-xr-xscripts/travis-ci.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/travis-ci.sh b/scripts/travis-ci.sh
new file mode 100755
index 0000000..9f44b0c
--- /dev/null
+++ b/scripts/travis-ci.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+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