diff --git a/.travis.yml b/.travis.yml index 1c406a5..528c987 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,3 @@ language: go go: - 1.12 -before_install: - - go get github.com/axw/gocov/gocov - - go get github.com/mattn/goveralls - - go get golang.org/x/tools/cmd/cover -script: - - ./coverage.sh - - $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci -repotoken W04Y4p452CDeI9gcsC8t5y217uHnUDFCb diff --git a/README.md b/README.md index 61ea6c0..0fccc7e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@

-
diff --git a/coverage.sh b/coverage.sh deleted file mode 100755 index ec12a36..0000000 --- a/coverage.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# see https://gist.github.com/hailiang/0f22736320abe6be71ce for more details - -set -e - -# Run test coverage on each subdirectories and merge the coverage profile. - -echo "mode: count" > profile.cov - -# Standard go tooling behavior is to ignore dirs with leading underscors -for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -not -path './vendor*' -type d); -do -if ls $dir/*.go &> /dev/null; then - go test -covermode=count -coverprofile=$dir/profile.tmp $dir - if [ -f $dir/profile.tmp ] - then - cat $dir/profile.tmp | tail -n +2 >> profile.cov - rm $dir/profile.tmp - fi -fi -done - -go tool cover -func profile.cov -