Starting with a simple travis file
This commit is contained in:
@ -39,7 +39,8 @@ before_script:
|
||||
# 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 test -v . # Run all the tests
|
||||
# - 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 $GO_FILES # forbid code with huge functions
|
||||
|
Reference in New Issue
Block a user