chore: update travis a bit for msrv
This commit is contained in:
parent
1ff2606c90
commit
364049ee5f
10
.travis.yml
10
.travis.yml
|
@ -1,6 +1,6 @@
|
||||||
language: rust
|
language: rust
|
||||||
rust:
|
rust:
|
||||||
# MSRV
|
# MSRV; though I only want to test if it builds.
|
||||||
- 1.40.0
|
- 1.40.0
|
||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
|
@ -31,7 +31,10 @@ before_script:
|
||||||
script:
|
script:
|
||||||
- cargo clippy -- -D clippy::all
|
- cargo clippy -- -D clippy::all
|
||||||
- cargo build --verbose --target $TARGET
|
- 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
|
# Need to cache the whole `.cargo` directory to keep .crates.toml for cargo-update to work
|
||||||
cache:
|
cache:
|
||||||
|
@ -81,14 +84,13 @@ before_deploy:
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
overwrite: true
|
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=
|
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_glob: true
|
||||||
file:
|
file:
|
||||||
- bottom_*.tar.gz
|
- bottom_*.tar.gz
|
||||||
- bottom_*.zip
|
- bottom_*.zip
|
||||||
- bottom_*.deb
|
- bottom_*.deb
|
||||||
skip_cleanup: true
|
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
condition: "$TRAVIS_RUST_VERSION = stable"
|
condition: "$TRAVIS_RUST_VERSION = stable"
|
||||||
|
|
|
@ -7,16 +7,7 @@ use std::process::Command;
|
||||||
//======================RATES======================//
|
//======================RATES======================//
|
||||||
|
|
||||||
fn get_binary_location() -> String {
|
fn get_binary_location() -> String {
|
||||||
// env!("CARGO_BIN_EXE_btm").to_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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -5,16 +5,7 @@ use std::process::Command;
|
||||||
// These tests are for testing some config file-specific options.
|
// These tests are for testing some config file-specific options.
|
||||||
|
|
||||||
fn get_binary_location() -> String {
|
fn get_binary_location() -> String {
|
||||||
// env!("CARGO_BIN_EXE_btm").to_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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue