From 03928288c5b6603364541de2c28ec151c24749f9 Mon Sep 17 00:00:00 2001 From: Marius Date: Tue, 6 Sep 2016 14:37:38 +0200 Subject: [PATCH] Add .exe extension for binaries on Windows --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index b5a34ac..b7b357b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: