For nightly builds, run the tests with ASAN.

This commit is contained in:
J.C. Jones 2017-08-09 06:51:59 -07:00
Родитель f2c806e985
Коммит 69d428c2ed
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -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