.travis.sh 572 B

123456789101112131415161718
  1. #!/bin/bash
  2. #
  3. # Build script for travis-ci.org builds.
  4. #
  5. if [ $ANALYZE = "true" ] && [ "$CC" = "clang" ]; then
  6. # scan-build -h
  7. scan-build cmake -G "Unix Makefiles"
  8. scan-build -enable-checker security.FloatLoopCounter \
  9. -enable-checker security.insecureAPI.UncheckedReturn \
  10. --status-bugs -v \
  11. make -j 8 \
  12. make -j 8 test
  13. else
  14. cmake -DCMAKE_BUILD_TYPE=Debug -DSANITIZE_ADDRESS=On -DCMAKE_INSTALL_PREFIX=_install
  15. make -j 8
  16. make install
  17. ASAN_OPTIONS=detect_leaks=0 LSAN_OPTIONS=verbosity=1:log_threads=1 ctest -V
  18. fi