Browse Source

Separate test runs for -race and -covermode=count

These options can't coexist. See: https://github.com/golang/go/issues/12118.
Rod Hynes 9 years ago
parent
commit
902c652c67
1 changed files with 8 additions and 4 deletions
  1. 8 4
      .travis.yml

+ 8 - 4
.travis.yml

@@ -9,10 +9,14 @@ install:
 - go get -t -d -v ./... && go build -v ./...
 script:
 - cd psiphon
-- go test -race -v -covermode=count -coverprofile=common.coverprofile ./common
-- go test -race -v -covermode=count -coverprofile=transferstats.coverprofile ./transferstats
-- go test -race -v -covermode=count -coverprofile=server.coverprofile ./server
-- go test -race -v -covermode=count -coverprofile=psiphon.coverprofile
+- go test -race -v ./common
+- go test -race -v ./transferstats
+- go test -race -v ./server
+- go test -race -v
+- go test -v -covermode=count -coverprofile=common.coverprofile ./common
+- go test -v -covermode=count -coverprofile=transferstats.coverprofile ./transferstats
+- go test -v -covermode=count -coverprofile=server.coverprofile ./server
+- go test -v -covermode=count -coverprofile=psiphon.coverprofile
 - $HOME/gopath/bin/gover
 - $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN
 before_install: