summaryrefslogtreecommitdiff
path: root/travis.sh
diff options
context:
space:
mode:
authorDirk Ziegelmeier <[email protected]>2018-10-12 21:44:47 +0200
committerDirk Ziegelmeier <[email protected]>2018-10-12 21:44:47 +0200
commita63b5aeaa7abfd5d5a092299cc4fcc6eedfc4982 (patch)
tree21e5daf615f11643a9e574aa80ddc1034ba38e34 /travis.sh
parent75bc36115686b0a1d8edafd4e12b7c5ecdcd2a31 (diff)
Rename test.sh to travis.sh
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/travis.sh b/travis.sh
new file mode 100755
index 00000000..1ddc2657
--- /dev/null
+++ b/travis.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+if [ "$COMPILER" ];
+then
+ export CC=$COMPILER
+fi
+cd contrib/ports/unix/check
+#build and run unit tests
+make clean all
+ERR=$?
+if [ $ERR != 0 ]; then
+ echo "unittests build failed"
+ exit 33
+fi
+make check -j 4
+
+cd ../../../../
+
+mkdir build
+cd build
+cmake ..
+ERR=$?
+if [ $ERR != 0 ]; then
+ echo "cmake failed"
+ exit 33
+fi
+cmake --build .