Skip to content

Commit

Permalink
package/ci: add MemorySanitizer to Travis builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Nov 26, 2016
1 parent a254d73 commit 436d26e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package/ci/travis-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cmake .. \
-DBUILD_TESTS=ON \
-DCMAKE_BUILD_TYPE=Debug
make -j install
ASAN_OPTIONS="color=always" LSAN_OPTIONS="color=always" UBSAN_OPTIONS="color=always" CORRADE_TEST_COLOR=ON ctest -V
ASAN_OPTIONS="color=always" LSAN_OPTIONS="color=always" UBSAN_OPTIONS="color=always" MSAN_OPTIONS="color=always" CORRADE_TEST_COLOR=ON ctest -V
cd ..

# Examples
Expand Down
15 changes: 15 additions & 0 deletions package/ci/travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ matrix:
packages:
- clang-3.8
- cmake
- language: cpp
os: linux
compiler: clang
env:
- TARGET=desktop-sanitizers
# It's either ASan or MSan, can't have both at the same time
- CMAKE_CXX_FLAGS="-fsanitize=memory -fsanitize-memory-track-origins -stdlib=libc++"
addons:
apt:
sources:
- debian-sid
packages:
- libc++-dev
- clang-3.8
- cmake
- language: cpp
os: osx
compiler: clang
Expand Down

0 comments on commit 436d26e

Please sign in to comment.