Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Travis CI and GoReleaser #1

Merged
merged 3 commits into from
Sep 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
before:
hooks:
- go mod download

builds:
-
goos:
- linux
- darwin
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
- env:
- GO111MODULE=on
- CGO_ENABLED=0
archives:
- id: kubemngr
replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ env:
- GO111MODULE=on
install:
- make setup
- make build
script:
- make ci
deploy:
- provider: script
skip_cleanup: true
Expand Down
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ all: clean build_all install
setup:
go mod download

go-mod-tidy:
@go mod tidy -v
@git diff HEAD
@git diff-index --quiet HEAD
.PHONY: go-mod-tidy

ci: go-mod-tidy

build:
go build ${LDFLAGS} -o ${BINARY}
go build

build_all:
$(foreach GOOS, $(PLATFORMS),\
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/zee-ahmed/kubemngr/cmd"
)

var clientVersion = "0.0.1"
var clientVersion = "0.1.0"

func main() {

Expand Down