Travis tuning

This commit is contained in:
Clement Tsang 2019-12-30 21:25:20 -05:00
parent e369d16efd
commit 74ca062f32

View file

@ -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