diff --git a/.gitignore b/.gitignore index 9f48f142..4e35edcd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ Godeps/* !Godeps/Godeps.json coverage.out count.out +.cover diff --git a/.travis.yml b/.travis.yml index 2f9385e3..c534df45 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,11 +13,20 @@ install: - go get -v github.com/kardianos/govendor - govendor sync +install: + - test -d ${GOPATH}/bin || mkdir -p ${GOPATH}/bin + - wget https://raw.githubusercontent.com/appleboy/golang-testing/master/coverage.sh -O ${GOPATH}/bin/coverage + - chmod +x ${GOPATH}/bin/coverage + # install dependency tools + - coverage tool + - go get -d -t -v ./... + script: - - go test -v -covermode=count -coverprofile=coverage.out + - coverage testing + - coverage coverage after_success: - - bash <(curl -s https://codecov.io/bash) + - bash <(curl -s https://codecov.io/bash) -f .cover/coverage.txt notifications: webhooks: