Skip to content

Commit

Permalink
push code cov report from ci build too
Browse files Browse the repository at this point in the history
  • Loading branch information
dikhan committed Oct 15, 2019
1 parent fe1c3a2 commit 46fac18
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -18,4 +18,6 @@ examples/*/.terraform/*
examples/*/terraform.tfstate*
.idea/*
terraform.tfstate
dist
dist

.coverage.txt
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -13,4 +13,7 @@ install:

script:
- env GO111MODULE=on make test
- env GO111MODULE=on make integration-test
- env GO111MODULE=on make integration-test

after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -50,7 +50,7 @@ lint:
# make test
test: fmt vet lint
@echo "[INFO] Testing $(TF_OPENAPI_PROVIDER_PLUGIN_NAME)"
@go test -v -cover $(TEST_PACKAGES)
@go test -v -cover $(TEST_PACKAGES) -coverprofile=coverage.txt -covermode=atomic

# make integration-test
integration-test: local-env-down local-env
Expand Down

0 comments on commit 46fac18

Please sign in to comment.