summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2019-12-30 21:25:20 -0500
committerClement Tsang <34804052+ClementTsang@users.noreply.github.com>2019-12-30 21:50:46 -0500
commit74ca062f32fd54fafd8d051e229f5a0695d209ac (patch)
treeb2f764beb8b027a81d46d36ef39657ed2e48dd6a
parente369d16efd1a7dd061b78ec6f38cd53f1c68b238 (diff)
Travis tuning
-rw-r--r--.travis.yml43
1 files changed, 22 insertions, 21 deletions
diff --git a/.travis.yml b/.travis.yml
index fa3b7dc0..69b05081 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,17 +3,32 @@ rust:
- stable
- beta
- nightly
-os:
- - osx
- - linux
-env:
- - RUST_BACKTRACE=1
jobs:
allow_failures:
- rust: nightly
+ - env: TARGET=x86_64-pc-windows-gnu # Seems to cause problems
+ include:
+ - os: linux
+ env:
+ - RUST_BACKTRACE=1
+ - TARGET=x86_64-unknown-linux-gnu
+ - os: osx
+ env:
+ - RUST_BACKTRACE=1
+ - TARGET=x86_64-apple-darwin
+ - os: windows
+ env:
+ - RUST_BACKTRACE=1
+ - TARGET=x86_64-pc-windows-msvc
+ - os: windows
+ env:
+ - RUST_BACKTRACE=1
+ - TARGET=x86_64-pc-windows-gnu
+
+before_script: rustup target add $TARGET
script:
- - cargo build --verbose
- - cargo test --verbose
+ - cargo build --release --target $TARGET
+ - cargo test --verbose --target $TARGET
# Need to cache the whole `.cargo` directory to keep .crates.toml for cargo-update to work
cache:
@@ -25,20 +40,6 @@ before_cache:
- rm -rf /home/travis/.cargo/git
- rm -rf /home/travis/.cargo/registry
-matrix:
- fast_finish: true
- include:
- - name: Windows
- env: RUST_BACKTRACE=1,TARGET=x86_64-pc-windows-msvc
- os: windows
- rust:
- - stable
- - beta
- - nightly
- before_script: rustup target add $TARGET
- script: -cargo build --release --target $TARGET
- - cargo test --verbose
-
notifications:
email:
on_success: never