]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
Enable backtraces for tests
[rust.git] / .travis.yml
index 86577702e96d933dd50e8458b198030dcbe7fc82..9aa632da05e0e976756cab9c1d054ad4a79c67f4 100644 (file)
@@ -1,13 +1,23 @@
 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
 - rustup target add i686-pc-windows-msvc
 - rustup component add rust-src
-- cargo install --git https://github.com/japaric/xargo.git
+- cargo install xargo || echo "skipping xargo install"
 - export RUST_SYSROOT=$HOME/rust
 script:
 - set -e
@@ -16,22 +26,22 @@ script:
   xargo/build.sh
 - |
   # Test plain miri
-  cargo build --locked --release --all-features &&
-  cargo test --locked --release --all-features --all &&
-  cargo install --locked --all-features
+  cargo build --release --all-features &&
+  RUST_BACKTRACE=1 cargo test --release --all-features --all &&
+  cargo install --all-features --force
 - |
   # Test cargo miri
   cd cargo-miri-test &&
   cargo miri &&
-  cargo miri test &&
+  #cargo miri test &&
   cd ..
 - |
   # and run all tests with full mir
-  MIRI_SYSROOT=~/.xargo/HOST cargo test --locked --release
+  MIRI_SYSROOT=~/.xargo/HOST cargo test --release
 - |
   # test that the rustc_tests binary compiles
   cd rustc_tests &&
-  cargo build --locked --release &&
+  cargo build --release &&
   cd ..
 notifications:
   email: