Skip cross-compilation on master

This commit is contained in:
Zellyn Hunter 2016-11-13 23:16:03 -05:00
parent 58a2726f1c
commit 0c5c863c01
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ deploy:
tags: true
after_success:
# Cross-compile tagged releases.
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
if [ ! -z "$TRAVIS_TAG" ]; then
echo 'Cross-compiling';
go get github.com/inconshreveable/mousetrap;
mkdir -p release;
GOOS=linux GOARCH=amd64 go build -o release/diskii-linux-amd64;