Fix broken windows build, disable beta for now.

This commit is contained in:
ClementTsang 2020-02-20 01:37:46 -05:00
parent f4b7df139a
commit 7f0a05a8f9

View File

@ -1,7 +1,7 @@
language: rust language: rust
rust: rust:
- stable - stable
- beta #- beta // TODO: [TRAVIS] Skip this on deploy
os: os:
- linux - linux
- osx - osx
@ -46,17 +46,23 @@ notifications:
before_deploy: before_deploy:
- | - |
if [[ $TRAVIS_OS_NAME == "windows" ]]; then
export TARGET=x86_64-pc-windows-msvc;
cargo build --release --target $TARGET;
cp ./target/x86_64-pc-windows-msvc/release/btm btm;
strip btm;
tar -czvf bottom_x86_64-pc-windows-msvc.tar.gz btm;
else
cargo build --release; cargo build --release;
cp ./target/release/btm btm; cp ./target/release/btm btm;
strip btm; strip btm;
if [[ $TRAVIS_OS_NAME == "linux" ]]; then if [[ $TRAVIS_OS_NAME == "linux" ]]; then
tar -czvf bottom_x86_64-unknown-linux-gnu.tar.gz btm; tar -czvf bottom_x86_64-unknown-linux-gnu.tar.gz btm;
tar -czvf bottom_source_code.tar.gz ./src ./Cargo.toml LICENSE tests sample_config.toml; tar -czvf bottom_source_code.tar.gz ./src ./Cargo.toml LICENSE tests sample_config.toml;
elif [[ $TRAVIS_OS_NAME == "windows" ]]; then
tar -czvf bottom_x86_64-pc-windows-msvc.tar.gz btm;
elif [[ $TRAVIS_OS_NAME == "osx" ]]; then elif [[ $TRAVIS_OS_NAME == "osx" ]]; then
tar -czvf bottom_x86_64-apple-darwin.tar.gz btm; tar -czvf bottom_x86_64-apple-darwin.tar.gz btm;
fi fi
fi
deploy: deploy:
provider: releases provider: releases