Skip to content

Commit

Permalink
👷 run sanitizer after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Aug 16, 2017
1 parent df572ac commit 21726d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,16 @@ matrix:
- make check TEST_PREFIX="valgrind --error-exitcode=1 --leak-check=full " TEST_PATTERN=""

# clang sanitizer
# note: sadly clang's libc++ has errors when running with sanitize,
# so we use clang with gcc's libstdc++ which doesn't give those error.
# that's why we need to install g++-6 to get the lastest version
- os: linux
compiler: clang
env:
- COMPILER=clang++-4.0
- SPECIAL=sanitizer
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-4.0']
packages: ['g++-6', 'clang-4.0']
before_script:
after_success:
- make clang_sanitize

# cppcheck
Expand Down

0 comments on commit 21726d8

Please sign in to comment.