Skip to content

Commit

Permalink
Add .exe extension for binaries on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Sep 6, 2016
1 parent 44fda51 commit 0392828
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ script:
- cat fixtures/infra.tf.json | go run main.go | go run main.go -reverse

before_deploy:
- export XCOMPILE='go build -o json2hcl_${TRAVIS_TAG}_${GOOS}_${GOARCH} -ldflags="-X main.Version=${TRAVIS_TAG}" github.com/kvz/json2hcl'
- GOOS=linux GOARCH=386 eval "$XCOMPILE"
- GOOS=linux GOARCH=amd64 eval "$XCOMPILE"
- GOOS=linux GOARCH=arm eval "$XCOMPILE"
- GOOS=darwin GOARCH=386 eval "$XCOMPILE"
- GOOS=darwin GOARCH=amd64 eval "$XCOMPILE"
- GOOS=windows GOARCH=386 eval "$XCOMPILE"
- GOOS=windows GOARCH=amd64 eval "$XCOMPILE"
- export XCOMPILE='go build -o json2hcl_${TRAVIS_TAG}_${GOOS}_${GOARCH}${EXT} -ldflags="-X main.Version=${TRAVIS_TAG}" github.com/kvz/json2hcl'
- GOOS=linux GOARCH=386 eval "$XCOMPILE"
- GOOS=linux GOARCH=amd64 eval "$XCOMPILE"
- GOOS=linux GOARCH=arm eval "$XCOMPILE"
- GOOS=darwin GOARCH=386 eval "$XCOMPILE"
- GOOS=darwin GOARCH=amd64 eval "$XCOMPILE"
- GOOS=windows GOARCH=386 EXT=.exe eval "$XCOMPILE"
- GOOS=windows GOARCH=amd64 EXT=.exe eval "$XCOMPILE"
deploy:
provider: releases
api_key:
Expand Down

0 comments on commit 0392828

Please sign in to comment.