Commit fb54bbbf authored by David Vorick's avatar David Vorick

move linting to make test-long

parent 200522de
......@@ -6,7 +6,6 @@ go:
install:
- make dependencies
- test -z "$(go fmt ./...)"
- test -z "$(golint -min_confidence=1.0 ./modules/host)"
- make
script: make test && make test-long && make cover && make bench
......
......@@ -45,6 +45,11 @@ fmt:
vet:
go vet $(pkgs)
# will always run on some packages for a while.
lint:
golint -min_confidence=1.0 ./modules/host
@test -z $$(golint -min_confidence=1.0 ./modules/host)
# REBUILD touches all of the build-dependent source files, forcing them to be
# rebuilt. This is necessary because the go tool is not smart enough to trigger
# a rebuild when build tags have been changed.
......@@ -77,7 +82,7 @@ test: REBUILD
go test -short -tags='debug testing' -timeout=3s $(pkgs) -run=$(run)
test-v: REBUILD
go test -race -v -short -tags='debug testing' -timeout=15s $(pkgs) -run=$(run)
test-long: clean fmt vet REBUILD
test-long: clean fmt vet lint REBUILD
go test -v -race -tags='testing debug' -timeout=300s $(pkgs) -run=$(run)
bench: clean fmt REBUILD
go test -tags='testing' -timeout=300s -run=XXX -bench=. $(pkgs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment