fix testing script.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-04-01 10:07:28 +08:00
parent ed0999bced
commit 3e70464c7c
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -30,3 +30,4 @@ bin/*
.DS_Store .DS_Store
*.cert *.cert
*.key *.key
coverage.out

View File

@ -19,6 +19,6 @@ install:
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
script: script:
- go test -v -covermode=count -coverprofile=coverage.out - cd gopush && go test -v -covermode=count -coverprofile=coverage.out
- $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=gopush/coverage.out
-service=travis-ci -repotoken=$COVERALLS_TOKEN -service=travis-ci -repotoken=$COVERALLS_TOKEN