bottom/.travis.yml

44 lines
1 KiB
YAML
Raw Normal View History

2019-09-13 19:12:01 -04:00
language: rust
rust:
2019-11-07 14:55:24 -05:00
- stable
- beta
2019-09-13 19:12:01 -04:00
- nightly
2019-12-30 22:01:34 -05:00
os:
- linux
- osx
- windows
2019-12-06 23:52:28 -05:00
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.
2020-01-03 00:20:47 -05:00
fast_finish: true
2019-12-30 21:25:20 -05:00
2019-12-30 22:01:34 -05:00
before_install:
- export RUST_BACKTRACE=1
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]; then
export TARGET=x86_64-unknown-linux-gnu;
2019-12-30 22:01:34 -05:00
elif [[ $TRAVIS_OS_NAME == "windows" ]]; then
export TARGET=x86_64-pc-windows-msvc;
2019-12-30 22:17:03 -05:00
elif [[ $TRAVIS_OS_NAME == "osx" ]]; then
export TARGET=x86_64-apple-darwin;
2019-12-30 22:01:34 -05:00
fi
2019-12-30 21:25:20 -05:00
before_script: rustup target add $TARGET
2019-12-30 19:40:45 -05:00
script:
2020-01-03 00:20:47 -05:00
- cargo build --verbose --target $TARGET
2019-12-30 21:25:20 -05:00
- cargo test --verbose --target $TARGET
2019-10-10 16:36:29 -04:00
2019-12-30 20:56:10 -05:00
# Need to cache the whole `.cargo` directory to keep .crates.toml for cargo-update to work
cache:
directories:
- /home/travis/.cargo
2019-12-16 02:31:49 -05:00
2019-12-30 20:56:10 -05:00
# But don't cache the cargo registry.
before_cache:
2019-12-30 19:40:45 -05:00
- rm -rf /home/travis/.cargo/git
- rm -rf /home/travis/.cargo/registry
2019-12-16 02:31:49 -05:00
2019-10-10 16:36:29 -04:00
notifications:
email:
on_success: never