From 3e70464c7c406bb1772d70bcbdc94874e6825d15 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 1 Apr 2016 10:07:28 +0800 Subject: [PATCH 1/2] fix testing script. Signed-off-by: Bo-Yi Wu --- .gitignore | 1 + .travis.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0bfd2ac..63082bc 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ bin/* .DS_Store *.cert *.key +coverage.out diff --git a/.travis.yml b/.travis.yml index a8236d0..2ff7e40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,6 @@ install: - go get github.com/mattn/goveralls script: - - go test -v -covermode=count -coverprofile=coverage.out - - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out + - cd gopush && go test -v -covermode=count -coverprofile=coverage.out + - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=gopush/coverage.out -service=travis-ci -repotoken=$COVERALLS_TOKEN From 8291d7973e9a4e04cee84d94cc1346cea8d4b0cd Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 1 Apr 2016 10:11:20 +0800 Subject: [PATCH 2/2] fix coverage path. Signed-off-by: Bo-Yi Wu --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2ff7e40..9c47908 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,5 +20,5 @@ install: script: - cd gopush && go test -v -covermode=count -coverprofile=coverage.out - - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=gopush/coverage.out + - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken=$COVERALLS_TOKEN