From 78e11058d32fbea1dee2645a9060813dd8be17de Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 18 Apr 2019 14:58:30 +0200 Subject: [PATCH] CI: build with debug assertions --- .appveyor.yml | 1 + .travis.yml | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 7db60514ada7..5b77b1895a63 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -30,6 +30,7 @@ install: build_script: - set RUST_TEST_NOCAPTURE=1 - set RUST_BACKTRACE=1 + - set RUSTFLAGS="-C debug-assertions" # Build and install miri - cargo build --release --all-features --all-targets - cargo install --all-features --force --path . diff --git a/.travis.yml b/.travis.yml index 883404fb4a08..fd8c1260215d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,12 @@ os: - osx dist: xenial +env: + global: + - RUST_TEST_NOCAPTURE=1 + - RUST_BACKTRACE=1 + - RUSTFLAGS="-C debug-assertions" + before_script: # Linux: install extra stuff for cross-compilation - if [[ "$TRAVIS_OS_NAME" == linux ]]; then sudo apt update && sudo apt install gcc-multilib; fi @@ -48,7 +54,3 @@ notifications: branches: only: - master -env: - global: - - RUST_TEST_NOCAPTURE=1 - - RUST_BACKTRACE=1