mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-26 22:20:18 +00:00
43 lines
1 KiB
YAML
43 lines
1 KiB
YAML
language: rust
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
os:
|
|
- linux
|
|
- osx
|
|
- windows
|
|
jobs:
|
|
allow_failures:
|
|
- rust: nightly
|
|
- env: TARGET=x86_64-pc-windows-gnu # Seems to cause problems. TODO: Add test for it, but keep allow fail.
|
|
fast_finish: true
|
|
|
|
before_install:
|
|
- export RUST_BACKTRACE=1
|
|
- |
|
|
if [[ $TRAVIS_OS_NAME == "linux" ]]; then
|
|
export TARGET=x86_64-unknown-linux-gnu;
|
|
elif [[ $TRAVIS_OS_NAME == "windows" ]]; then
|
|
export TARGET=x86_64-pc-windows-msvc;
|
|
elif [[ $TRAVIS_OS_NAME == "osx" ]]; then
|
|
export TARGET=x86_64-apple-darwin;
|
|
fi
|
|
before_script: rustup target add $TARGET
|
|
script:
|
|
- cargo build --verbose --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
|