diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-20 01:37:46 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-20 01:38:17 -0500 |
commit | 7f0a05a8f998136a1abf938f1dabc444c5c032cb (patch) | |
tree | b6f7e6e6e66f6dba2ad7babc27bcb8c0bf85172f | |
parent | f4b7df139a8b089a73091089cf8faf81b3a743d4 (diff) |
Fix broken windows build, disable beta for now.
-rw-r--r-- | .travis.yml | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index 32be34fe..f50c44eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: rust rust: - stable - - beta + #- beta // TODO: [TRAVIS] Skip this on deploy os: - linux - osx @@ -46,16 +46,22 @@ notifications: before_deploy: - | - cargo build --release; - cp ./target/release/btm btm; - strip btm; - if [[ $TRAVIS_OS_NAME == "linux" ]]; then - 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; - elif [[ $TRAVIS_OS_NAME == "windows" ]]; then + 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; - elif [[ $TRAVIS_OS_NAME == "osx" ]]; then - tar -czvf bottom_x86_64-apple-darwin.tar.gz btm; + else + cargo build --release; + cp ./target/release/btm btm; + strip btm; + if [[ $TRAVIS_OS_NAME == "linux" ]]; then + 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; + elif [[ $TRAVIS_OS_NAME == "osx" ]]; then + tar -czvf bottom_x86_64-apple-darwin.tar.gz btm; + fi fi deploy: |