]> git.lizzy.rs Git - rust.git/commitdiff
CI: build with debug assertions
authorRalf Jung <post@ralfj.de>
Thu, 18 Apr 2019 12:58:30 +0000 (14:58 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 18 Apr 2019 12:58:30 +0000 (14:58 +0200)
.appveyor.yml
.travis.yml

index 7db60514ada7a6cc0bdd99ccc8a8600b73e8c5e9..5b77b1895a6313a94aeaffff9a9a16be578181ef 100644 (file)
@@ -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 .
index 883404fb4a0876f556ef78db96eeccfedbd07dc0..fd8c1260215dd5b9dda51d875b85d8b2ce0018c0 100644 (file)
@@ -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