1dist: trusty 2sudo: false 3language: c 4env: 5 matrix: 6 - VALGRIND=On SANITIZERS=Off 7 - VALGRIND=Off SANITIZERS=Off 8 - VALGRIND=Off SANITIZERS=On 9compiler: 10 - gcc 11 - clang 12addons: 13 apt: 14 packages: 15 - valgrind 16 - libasan0 17 - lib32asan0 18 # currently not supported on travis: 19 # - libasan1 20 # - libasan2 21 # - libubsan0 22 - llvm 23script: 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 29