From 9efb5a768c320f2eed689c4d2096ab5b00318696 Mon Sep 17 00:00:00 2001 From: Mathieu Debove Date: Thu, 14 Mar 2019 12:58:37 +0100 Subject: [PATCH] Add GoReleaser configuration --- .gitignore | 3 ++- .goreleaser.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 6 ++---- 3 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore index cd387c2..5b2d4c2 100644 --- a/.gitignore +++ b/.gitignore @@ -24,9 +24,10 @@ # cli binary ./flogo +dist go.sum go.mod.build -cmd/flogo/currentversion.go \ No newline at end of file +cmd/flogo/currentversion.go diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..3bf6f3e --- /dev/null +++ b/.goreleaser.yml @@ -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:' diff --git a/.travis.yml b/.travis.yml index 93f61ac..d9b6dd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: