Skip to content

Commit

Permalink
Install zip command using chocolatey in Windows environment
Browse files Browse the repository at this point in the history
  • Loading branch information
pemistahl committed Oct 6, 2019
1 parent 112376a commit 1eecd00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ deploy:

before_deploy: |
if [[ -f "target/release/grex" ]]; then
chmod +x target/release/grex;
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
choco install zip;
cd target/release;
zip grex-$TRAVIS_TAG-$TRAVIS_OS_NAME.zip grex;
cd ../..;
else
chmod +x target/release/grex;
tar -zcf target/release/grex-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.gz -C target/release grex;
fi
echo "Created binary archive";
Expand Down

0 comments on commit 1eecd00

Please sign in to comment.