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