build: don't run vet before tests

Recent versions of Go run vet during 'go test' and we have
a dedicated lint job.
This commit is contained in:
Felix Lange 2018-10-06 12:40:42 +02:00
parent b4ef1e50c3
commit e1e560a141

View file

@ -332,13 +332,10 @@ func doTest(cmdline []string) {
}
packages = build.ExpandPackagesNoVendor(packages)
// Run analysis tools before the tests.
build.MustRun(goTool("vet", packages...))
// Run the actual tests.
gotest := goTool("test", buildFlags(env)...)
// Test a single package at a time. CI builders are slow
// and some tests run into timeouts under load.
gotest := goTool("test", buildFlags(env)...)
gotest.Args = append(gotest.Args, "-p", "1")
if *coverage {
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")