bottom/.travis.yml
2019-12-30 21:05:39 -05:00

44 lines
849 B
YAML

language: rust
rust:
- stable
- beta
- nightly
os:
- osx
- linux
env:
- RUST_BACKTRACE=1
jobs:
allow_failures:
- rust: nightly
script:
- cargo build --verbose
- cargo test --verbose
# Need to cache the whole `.cargo` directory to keep .crates.toml for cargo-update to work
cache:
directories:
- /home/travis/.cargo
# But don't cache the cargo registry.
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