Skip to content

Commit

Permalink
Add GoReleaser configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
debovema committed Mar 14, 2019
1 parent 30770bd commit 9efb5a7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@

# cli binary
./flogo
dist

go.sum

go.mod.build

cmd/flogo/currentversion.go
cmd/flogo/currentversion.go
32 changes: 32 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
before:
hooks:
- go mod download
- go generate ./...
builds:
- goos:
- darwin
- linux
- windows
goarch:
- amd64
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: ./cmd/flogo/
binary: flogo

archive:
format: binary
replacements:
darwin: osx
linux: linux
windows: win
amd64: x86_64
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
language: go
go:
- 1.11.x
- 1.12.x
os:
- linux
- osx
- windows
env:
- GO111MODULE=on
script:
# - go build
# - go test ./...
- go build ./...
# - go test ./... # will be restored after merge of https://github.com/project-flogo/cli/pull/49
- go version

deploy:
Expand Down

0 comments on commit 9efb5a7

Please sign in to comment.