]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
Enable backtraces for tests
[rust.git] / .travis.yml
index 360b741106e58284080e5d737f4b3d2fdd20be0f..9aa632da05e0e976756cab9c1d054ad4a79c67f4 100644 (file)
@@ -1,8 +1,17 @@
 language: rust
 cache: cargo
+
+os:
+- osx
+- linux
+
 rust:
 - nightly
 before_script:
+# mac os weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
+- curl -sSL https://rvm.io/mpapis.asc | gpg --import -
+- rvm get stable
+# actual travis code
 - export PATH=$HOME/.local/bin:$PATH
 - rustup target add i686-unknown-linux-gnu
 - rustup target add i686-pc-windows-gnu
@@ -18,7 +27,7 @@ script:
 - |
   # Test plain miri
   cargo build --release --all-features &&
-  cargo test --release --all-features --all &&
+  RUST_BACKTRACE=1 cargo test --release --all-features --all &&
   cargo install --all-features --force
 - |
   # Test cargo miri