about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-08-02 17:57:55 +0200
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-08-02 17:57:55 +0200
commit7e585ef1472300f1c76c5966e6bd7d5f56c839d2 (patch)
tree87386f4475bb6b0decda6b1c4a782ac9d95cbd56
parent29a3c4d28c67ca8b808a6e91de530b3d909d4db3 (diff)
downloadrust-7e585ef1472300f1c76c5966e6bd7d5f56c839d2.tar.gz
rust-7e585ef1472300f1c76c5966e6bd7d5f56c839d2.zip
Speed up travis by using release mode
before we built in debug mode for testing,
but then installed miri, which builds in release mode.

So we built in release mode anyway but tested slowly in debug mode
-rw-r--r--.travis.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 4856f1aad5e..46734f6f114 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,8 +15,8 @@ script:
   xargo/build.sh
 - |
   # Test plain miri
-  cargo build &&
-  cargo test &&
+  cargo build --release &&
+  cargo test --release &&
   cargo install
 - |
   # Test cargo miri
@@ -26,11 +26,11 @@ script:
   cd ..
 - |
   # and run all tests with full mir
-  MIRI_SYSROOT=~/.xargo/HOST cargo test
+  MIRI_SYSROOT=~/.xargo/HOST cargo test --release
 - |
   # test that the rustc_tests binary compiles
   cd rustc_tests &&
-  cargo build &&
+  cargo build --release &&
   cd ..
 notifications:
   email: