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

Update ownership and dependencies #19

Merged
merged 3 commits into from
Jun 2, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
builds:
- main: ./cmd/helm-gcs/main.go
binary: helm-gcs
ldflags: -s -w -X github.com/nouney/helm-gcs/cmd/helm-gcs/cmd.version={{.Version}} -X github.com/nouney/helm-gcs/cmd/helm-gcs/cmd.commit={{.Commit}} -X github.com/nouney/helm-gcs/cmd/helm-gcs/cmd.date={{.Date}}
ldflags: -s -w -X github.com/hayorov/helm-gcs/cmd/helm-gcs/cmd.version={{.Version}} -X github.com/hayorov/helm-gcs/cmd/helm-gcs/cmd.commit={{.Commit}} -X github.com/hayorov/helm-gcs/cmd/helm-gcs/cmd.date={{.Date}}
goos:
- windows
- darwin
Expand Down
19 changes: 8 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: go

go:
- "1.10.x"
- "1.9.x"
- "1.12.x"

# Skip the install step. Don't `go get` dependencies. Only build with the
# code in vendor/
Expand All @@ -14,20 +13,18 @@ notifications:

# Anything in before_script that returns a nonzero exit code will
# flunk the build and immediately stop. It's sorta like having
# set -e enabled in bash.
# set -e enabled in bash.
before_script:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/
- go get github.com/golang/lint/golint # Linter
- go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter
- go get -u golang.org/x/lint/golint # Linter
- go get github.com/fzipp/gocyclo

# script always run to completion (set +e). All of these code checks are must haves
# in a modern Go project.
script:
- test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
- go test -v -race ./... # Run all the tests with the race detector enabled
- go vet ./... # go vet is the official Go static analyzer
- megacheck ./... # "go vet on steroids" + linter
- gocyclo -over 19 cmd pkg # forbid code with huge/complex functions
- test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
- go test -v -race ./... # Run all the tests with the race detector enabled
- go vet ./... # go vet is the official Go static analyzer
- gocyclo -over 19 cmd pkg # forbid code with huge/complex functions
- golint -set_exit_status $(go list ./...) # one last linter
- go build cmd/helm-gcs/main.go # compilation
- go build cmd/helm-gcs/main.go # compilation
Loading