mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-04-08 17:05:59 +02:00
46 lines
1000 B
YAML
46 lines
1000 B
YAML
language: rust
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
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 --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:
|
|
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
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|