Be less verbose with ASAN builds

This commit is contained in:
J.C. Jones 2017-08-09 10:56:39 -07:00
Родитель 69d428c2ed
Коммит 69d933b33a
1 изменённых файлов: 5 добавлений и 12 удалений

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

@ -6,10 +6,6 @@ rust:
- beta
- nightly
# matrix:
# allow_failures:
# - rust: nightly
addons:
apt:
packages:
@ -23,15 +19,12 @@ before_install:
- cargo install rustfmt || true
script:
- |
if [ "$TRAVIS_RUST_VERSION" == "nightly" ] ; then
export ASAN_OPTIONS="detect_odr_violation=1:leak_check_at_exit=0:detect_leaks=0"
export RUSTFLAGS="-Z sanitizer=address"
fi
- |
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