2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00

Travis: Don't use cached test results

This commit is contained in:
Alexander Neumann 2018-08-31 22:00:03 +02:00
parent 175e630717
commit 9e9bb62ad4

View File

@ -346,11 +346,11 @@ func (env *TravisEnvironment) RunTests() error {
// run the tests and gather coverage information (for Go >= 1.10) // run the tests and gather coverage information (for Go >= 1.10)
switch { switch {
case v.AtLeast(GoVersion{1, 11, 0}): case v.AtLeast(GoVersion{1, 11, 0}):
err = runWithEnv(env.env, "go", "test", "-mod=vendor", "-coverprofile", "all.cov", "./...") err = runWithEnv(env.env, "go", "test", "-count", "1", "-mod=vendor", "-coverprofile", "all.cov", "./...")
case v.AtLeast(GoVersion{1, 10, 0}): case v.AtLeast(GoVersion{1, 10, 0}):
err = runWithEnv(env.env, "go", "test", "-coverprofile", "all.cov", "./...") err = runWithEnv(env.env, "go", "test", "-count", "1", "-coverprofile", "all.cov", "./...")
default: default:
err = runWithEnv(env.env, "go", "test", "./...") err = runWithEnv(env.env, "go", "test", "-count", "1", "./...")
} }
if err != nil { if err != nil {
return err return err