.travis.yml 602 B

12345678910111213141516171819202122232425262728
  1. dist: trusty
  2. sudo: false
  3. language: c
  4. env:
  5. matrix:
  6. - VALGRIND=On SANITIZERS=Off
  7. - VALGRIND=Off SANITIZERS=Off
  8. - VALGRIND=Off SANITIZERS=On
  9. compiler:
  10. - gcc
  11. - clang
  12. addons:
  13. apt:
  14. packages:
  15. - valgrind
  16. - libasan0
  17. - lib32asan0
  18. # currently not supported on travis:
  19. # - libasan1
  20. # - libasan2
  21. # - libubsan0
  22. - llvm
  23. script:
  24. - mkdir build
  25. - cd build
  26. - cmake .. -DENABLE_CJSON_UTILS=On -DENABLE_VALGRIND="${VALGRIND}" -DENABLE_SAFE_STACK="${VALGRIND}" -DENABLE_SANITIZERS="${SANITIZERS}"
  27. - make
  28. - make test CTEST_OUTPUT_ON_FAILURE=On