summaryrefslogtreecommitdiff
path: root/libs/assimp/contrib/zip/.travis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libs/assimp/contrib/zip/.travis.sh')
-rwxr-xr-xlibs/assimp/contrib/zip/.travis.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/assimp/contrib/zip/.travis.sh b/libs/assimp/contrib/zip/.travis.sh
new file mode 100755
index 0000000..9cb03ee
--- /dev/null
+++ b/libs/assimp/contrib/zip/.travis.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+#
+# Build script for travis-ci.org builds.
+#
+if [ $ANALYZE = "true" ] && [ "$CC" = "clang" ]; then
+ # scan-build -h
+ scan-build cmake -G "Unix Makefiles"
+ scan-build -enable-checker security.FloatLoopCounter \
+ -enable-checker security.insecureAPI.UncheckedReturn \
+ --status-bugs -v \
+ make -j 8 \
+ make -j 8 test
+else
+ cmake -DCMAKE_BUILD_TYPE=Debug -DSANITIZE_ADDRESS=On -DCMAKE_INSTALL_PREFIX=_install
+ make -j 8
+ make install
+ ASAN_OPTIONS=detect_leaks=0 LSAN_OPTIONS=verbosity=1:log_threads=1 ctest -V
+fi