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 04:39:49 +01:00
|
|
|
- env: TARGET=x86_64-pc-windows-gnu # Seems to cause problems. TODO: Add test for it, but keep allow fail.
|
2020-01-03 06:20:47 +01:00
|
|
|
fast_finish: true
|
2019-12-31 03:25:20 +01:00
|
|
|
|
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:17:03 +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
|
2020-02-10 06:26:34 +01:00
|
|
|
before_script:
|
|
|
|
- rustup target add $TARGET
|
2019-12-31 01:40:45 +01:00
|
|
|
script:
|
2020-01-03 06:20:47 +01:00
|
|
|
- cargo build --verbose --target $TARGET
|
2019-12-31 03:25:20 +01:00
|
|
|
- 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
|
2020-02-18 02:29:41 +01:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_OS_NAME == "linux" ]]; then
|
|
|
|
cp ./target/x86_64-unknown-linux-gnu/debug/btm btm;
|
|
|
|
tar -czvf bottom_x86_64-unknown-linux-gnu.tar.gz btm;
|
|
|
|
elif [[ $TRAVIS_OS_NAME == "windows" ]]; then
|
|
|
|
cp ./target/x86_64-pc-windows-msvc/debug/btm btm;
|
|
|
|
tar -czvf bottom_x86_64-pc-windows-msvc.tar.gz btm;
|
|
|
|
elif [[ $TRAVIS_OS_NAME == "osx" ]]; then
|
|
|
|
cp ./target/x86_64-apple-darwin/debug/btm btm;
|
|
|
|
tar -czvf bottom_x86_64-apple-darwin.tar.gz btm;
|
|
|
|
fi
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: nAzTrDADUZVpiTkpaTjfEZMFfyfgJV0jwrGvHx0u+DorGQIeuKIY+HTm6iOmU5OAdhPs5MBgqKJK2s9XoOxbw4qcC5uPHaRICX3yd63zi49gBwkE0FkCDOfrjR3xnsf9jNVFzfFFIoYAjY/67J9hzVmc9z9uhXIuokj6Hp0md/snjYpjeQi6QRi9n4zsTR60a4NanbeYJ9D+TdoJ4UyA3pdl7JOtQHwxgNPPpDij4aPz4mmdq0mlpFBYAMksMi9xhBXzB/AUgnsKvchpMcDZER2icHS5Yerq4buxcQjQgMYG10MKq24BeMfMR4lu9SAtKSgcclXvLDLdmY5DeMbrbup51xcuWcqouVwdw8aI7jOskFUKFFSmdEtEGeBG6PCf2fjsjpMjy0kZaO4HxS5kJJewLgXgpgQUQjRL5i2KGpO1pnMD4ev7CcdMrnQHZlNXbi6k6Z9FCOQukIcsmMjQEk4w2JSUCfX53wqQPV3ID4QKckTWrZkSayiet6rRFrRK4087fl7G3JjIMYG7+QbP8PoFkCCH3aUOPCg+3J2YockYB2Zjgnq/E/WNrt1rYxwA6ssKn8+7KqCLzXIv3gFHx9htE7nEvH6QH9dAacjT3bbaxkHpuS6+orxM12vL7+9K6j9HdePK8YqO+lByUmlBG8p91WIhgYkV4vLTAtO9FqA=
|
|
|
|
file:
|
|
|
|
- bottom_x86_64-unknown-linux-gnu.tar.gz
|
|
|
|
- bottom_x86_64-pc-windows-msvc.tar.gz
|
|
|
|
- bottom_x86_64-apple-darwin.tar.gz
|
|
|
|
cleanup: false
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
repo: ClementTsang/bottom
|
|
|
|
draft: true
|