From 69d428c2edcbf4eee8269ba84a96926a439e84cd Mon Sep 17 00:00:00 2001 From: "J.C. Jones" Date: Wed, 9 Aug 2017 06:51:59 -0700 Subject: [PATCH] For nightly builds, run the tests with ASAN. --- .travis.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5700eec..3d01f65 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,9 @@ rust: - beta - nightly -matrix: - allow_failures: - - rust: nightly +# matrix: +# allow_failures: +# - rust: nightly addons: apt: @@ -27,3 +27,11 @@ script: cargo fmt -- --write-mode=diff && cargo build && cargo test +- | + if [ "$TRAVIS_RUST_VERSION" == "nightly" ] ; then + export LSAN_OPTIONS=verbosity=1:log_threads=1 + export ASAN_OPTIONS="detect_odr_violation=1:leak_check_at_exit=0:detect_leaks=0" + export RUST_BACKTRACE=full + export RUSTFLAGS="-Z sanitizer=address" + rustup run nightly cargo test + fi