mirror of
https://github.com/ClementTsang/bottom
synced 2025-02-16 13:18:28 +00:00
chore: update travis a bit for msrv
This commit is contained in:
parent
1ff2606c90
commit
364049ee5f
3 changed files with 8 additions and 24 deletions
10
.travis.yml
10
.travis.yml
|
@ -1,6 +1,6 @@
|
|||
language: rust
|
||||
rust:
|
||||
# MSRV
|
||||
# MSRV; though I only want to test if it builds.
|
||||
- 1.40.0
|
||||
- stable
|
||||
- beta
|
||||
|
@ -31,7 +31,10 @@ before_script:
|
|||
script:
|
||||
- cargo clippy -- -D clippy::all
|
||||
- cargo build --verbose --target $TARGET
|
||||
- cargo test --verbose --target $TARGET
|
||||
- |
|
||||
if [[ $TRAVIS_RUST_VERSION != "1.40.0" ]]; then
|
||||
cargo test --verbose --target $TARGET;
|
||||
fi
|
||||
|
||||
# Need to cache the whole `.cargo` directory to keep .crates.toml for cargo-update to work
|
||||
cache:
|
||||
|
@ -81,14 +84,13 @@ before_deploy:
|
|||
deploy:
|
||||
provider: releases
|
||||
overwrite: true
|
||||
api_key:
|
||||
token:
|
||||
secure: ppBn0DnqZ+Rzb84doZQxYdUBQ0rVrZNIiH6ZSFEiCVJd0ttqXfOjK/qXbIf/zabwO0Olqz18jwd9piHjNigWRrHwX9N+YH0DZTM3f4WS2/2acvOP3AjSw6oERjYTwS5yKe/XP1sU11uL6O0oAxYFeiAkn7QOM7flVUE2BmmLAs2lLtQ+9ylmUeBGatrkTfQ0Z2i1o7p5mtI2fKUozpImtHq8TClQEsF4oQS5nvkHtpLuPQ0UrJ8vKZijDBeMuLbDkR121ujRnjoBt8+eXBRbwzAvVotwRozyol8noAN3i4VvYueId6oX7Y2DSEp26wnCuRXGurUnyya5JE55AKoevK+SUHRe5+29/2lPbC5d/etZt2tSX1AIJk9fHeIfRPSTzanIIyDpUzSGoMKjl1ARKGrgHYehRxMKpW0cC2xHSlQ+NrA5apLpXKr2IzpkGsxpAxLqRASbX2VJYCEL70WoJfXinZrxeDxXsaWBLGaj9ySyk059GZBMz9GBdYNtwF3G/3aSIt0nkEGgKipgYXHi5keKKGmyfeZyYkRJRbc369JRZiHuOWct+1ZsOdrKKdbyAdcDGj5kbKuYwA6E+wgI62IWvUTm+vtKDuIbLpu/48aOUuEslGHkYAszLTapX/Le9c9XTu3L+PMgkPq2LSyaeGrfnM+DE/Hwe3Jvurccp94=
|
||||
file_glob: true
|
||||
file:
|
||||
- bottom_*.tar.gz
|
||||
- bottom_*.zip
|
||||
- bottom_*.deb
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
condition: "$TRAVIS_RUST_VERSION = stable"
|
||||
|
|
|
@ -7,16 +7,7 @@ use std::process::Command;
|
|||
//======================RATES======================//
|
||||
|
||||
fn get_binary_location() -> String {
|
||||
// env!("CARGO_BIN_EXE_btm").to_string()
|
||||
if cfg!(target_os = "linux") {
|
||||
"./target/x86_64-unknown-linux-gnu/debug/btm".to_string()
|
||||
} else if cfg!(target_os = "windows") {
|
||||
"./target/x86_64-pc-windows-msvc/debug/btm".to_string()
|
||||
} else if cfg!(target_os = "macos") {
|
||||
"./target/x86_64-apple-darwin/debug/btm".to_string()
|
||||
} else {
|
||||
"".to_string()
|
||||
}
|
||||
env!("CARGO_BIN_EXE_btm").to_string()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -5,16 +5,7 @@ use std::process::Command;
|
|||
// These tests are for testing some config file-specific options.
|
||||
|
||||
fn get_binary_location() -> String {
|
||||
// env!("CARGO_BIN_EXE_btm").to_string()
|
||||
if cfg!(target_os = "linux") {
|
||||
"./target/x86_64-unknown-linux-gnu/debug/btm".to_string()
|
||||
} else if cfg!(target_os = "windows") {
|
||||
"./target/x86_64-pc-windows-msvc/debug/btm".to_string()
|
||||
} else if cfg!(target_os = "macos") {
|
||||
"./target/x86_64-apple-darwin/debug/btm".to_string()
|
||||
} else {
|
||||
"".to_string()
|
||||
}
|
||||
env!("CARGO_BIN_EXE_btm").to_string()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Reference in a new issue