diff --git a/.gitignore b/.gitignore index 6188585..1580ad0 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ docker-compose docker-compose-test-plugin.jar node_modules/ docusaurus/website/build/ +coverage.txt diff --git a/.travis.yml b/.travis.yml index c315d11..3c1b57b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,9 @@ script: - make build - BITBUCKET_SERVER=http://localhost:7990 BITBUCKET_USERNAME=admin BITBUCKET_PASSWORD=admin make testacc +after_success: + - bash <(curl -s https://codecov.io/bash) + matrix: fast_finish: true allow_failures: diff --git a/Makefile b/Makefile index 3e782d3..03b3cac 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) PKG_NAME=bitbucket export GO111MODULE=on +export TESTARGS=-race -coverprofile=coverage.txt -covermode=atomic + export BITBUCKET_SERVER=http://localhost:7990 export BITBUCKET_USERNAME=admin export BITBUCKET_PASSWORD=admin