diff --git a/.goreleaser.yml b/.goreleaser.yml index df54e3f..05c785d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -9,6 +9,7 @@ builds: - goos: - linux - darwin + - windows goarch: - amd64 - "386" @@ -16,6 +17,7 @@ builds: - "6" main: . ldflags: -s -w -X main.VERSION={{.Version}} + flags: -tags bindata binary: gohttpserver archive: format: tar.gz diff --git a/.travis.yml b/.travis.yml index b72dcba..8dcfaef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,14 @@ language: go go: - - 1.6 - 1.7 env: global: - GO15VENDOREXPERIMENT=1 script: - go test -v +# .travis.yml +after_success: + - go get github.com/jteeuwen/go-bindata/... + - go get github.com/elazarl/go-bindata-assetfs/... + - test -n "$TRAVIS_TAG" && go-bindata-assetfs -tags bindata res/... + - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash