Skip main in tests for meaningful cover stats

This commit is contained in:
Joona Hoikkala
2016-11-28 13:20:19 +02:00
parent 805c7dd2cf
commit 3154c686e0
2 changed files with 4 additions and 2 deletions

View File

@ -11,5 +11,5 @@ before_install:
script:
- go vet
- golint -set_exit_status
- go test -race -v
- $HOME/gopath/bin/goveralls -service=travis-ci
- go test -race -v -tags test -covermode=atomic -coverprofile=profile.cov
- $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci

View File

@ -1,3 +1,5 @@
//+build !test
package main
import (