summaryrefslogtreecommitdiff
path: root/src/mesh/assimp-master/contrib/zip/.travis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/assimp-master/contrib/zip/.travis.sh')
-rwxr-xr-xsrc/mesh/assimp-master/contrib/zip/.travis.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesh/assimp-master/contrib/zip/.travis.sh b/src/mesh/assimp-master/contrib/zip/.travis.sh
new file mode 100755
index 0000000..9cb03ee
--- /dev/null
+++ b/src/mesh/assimp-master/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