forked from TrueCloudLab/restic
Use gotestcover instead of homebrew run_tests.go
This commit is contained in:
parent
bbfd1dd0c0
commit
172c31ff45
2 changed files with 3 additions and 186 deletions
|
@ -26,6 +26,7 @@ func (env *TravisEnvironment) Prepare() {
|
|||
|
||||
run("go", "get", "golang.org/x/tools/cmd/cover")
|
||||
run("go", "get", "github.com/mattn/goveralls")
|
||||
run("go", "get", "github.com/pierrre/gotestcover")
|
||||
run("go", "get", "github.com/mitchellh/gox")
|
||||
|
||||
if runtime.GOOS == "darwin" {
|
||||
|
@ -76,8 +77,8 @@ func (env *TravisEnvironment) RunTests() {
|
|||
// run the build script
|
||||
run("go", "run", "build.go")
|
||||
|
||||
// gather coverage information
|
||||
run("go", "run", "run_tests.go", "all.cov")
|
||||
// run tests and gather coverage information
|
||||
run("gotestcover", "-coverprofile", "all.cov", "./...")
|
||||
|
||||
runGofmt()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue