Skip to content

Commit

Permalink
Merge pull request #1 from zee-ahmed/travis-ci
Browse files Browse the repository at this point in the history
Fixing Travis CI and GoReleaser
  • Loading branch information
simplyzee authored Sep 19, 2019
2 parents 38b81b7 + 0ca90cc commit 8671579
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 16 deletions.
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

0 comments on commit 8671579

Please sign in to comment.