From 3ee4314bea633dbf867ad28d0c5a0b72100ab3de Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Thu, 20 Feb 2020 00:44:19 -0500 Subject: [PATCH] Simplified and fixed travis. --- .travis.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index a031c0dc..8d3fc574 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,20 +46,14 @@ notifications: before_deploy: - | + cp ./target/release/btm btm; + strip btm; if [[ $TRAVIS_OS_NAME == "linux" ]]; then - cp ./target/x86_64-unknown-linux-gnu/release/btm btm; - strip btm; tar -czvf bottom_x86_64-unknown-linux-gnu.tar.gz btm; - mkdir source_code; - cp -r ./src ./Cargo.toml LICENSE tests sample_config.toml source_code; - tar -czvf bottom_source_code.tar.gz source_code; + tar -czvf bottom_source_code.tar.gz ./src ./Cargo.toml LICENSE tests sample_config.toml; elif [[ $TRAVIS_OS_NAME == "windows" ]]; then - cp ./target/x86_64-pc-windows-msvc/release/btm btm; - strip btm; tar -czvf bottom_x86_64-pc-windows-msvc.tar.gz btm; elif [[ $TRAVIS_OS_NAME == "osx" ]]; then - cp ./target/x86_64-apple-darwin/release/btm btm; - strip btm; tar -czvf bottom_x86_64-apple-darwin.tar.gz btm; fi