Be less verbose with ASAN builds
This commit is contained in:
Родитель
69d428c2ed
Коммит
69d933b33a
17
.travis.yml
17
.travis.yml
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче