Use gotestcover instead of homebrew run_tests.go

This commit is contained in:
Alexander Neumann 2016-01-16 13:32:23 +01:00
parent bbfd1dd0c0
commit 172c31ff45
2 changed files with 3 additions and 186 deletions

View file

@ -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()
}