Utilize var $Go_FILES for all tests
@@ -16,12 +16,12 @@ 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 vet ./... # go vet is the official Go static analyzer
- - megacheck ./... # "go vet on steroids" + linter
+ # - go test -v -race $GO_FILES # Run all the tests with the race detector enabled
+ - go vet $GO_FILES # go vet is the official Go static analyzer
+ - megacheck $GO_FILES # "go vet on steroids" + linter
- misspell -error -locale US . # check for spelling errors
- gocyclo -over 19 $GO_FILES # forbid code with huge functions
- - golint -set_exit_status $(go list ./...) # one last linter
+ - golint -set_exit_status $(go list $GO_FILES) # one last linter
# output code coverage
- go test -v -covermode=count -coverprofile=coverage.out $GO_FILES
- goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN
