diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2017-10-09 12:08:50 +0300 |
---|---|---|
committer | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2017-10-09 12:08:50 +0300 |
commit | 8fa34beb8aff6cfc0ab75ad88fc8495c85816b16 (patch) | |
tree | 7777dae2c79a3d8b8aee8114d77de75bee05eaae /Makefile | |
parent | 7d83fffa7bdf55e9e0536e756545747d0c86453f (diff) |
Use codecov for better code coverage reporting
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -84,17 +84,17 @@ govendor-status: $(TARGET_SETUP) $(GOVENDOR) $(TEST_REPO): git clone --bare https://gitlab.com/gitlab-org/gitlab-test.git $@ +.PHONY: prepare-tests +prepare-tests: $(TARGET_SETUP) $(TEST_REPO) .ruby-bundle + .PHONY: test -test: $(TARGET_SETUP) $(TEST_REPO) prepare-tests .ruby-bundle +test: prepare-tests @go test $(LOCAL_PACKAGES) .PHONY: test-changes -test-changes: $(TARGET_SETUP) $(TEST_REPO) prepare-tests .ruby-bundle +test-changes: prepare-tests cd $(PKG_BUILD_DIR) && go test $(CHANGED_LOCAL_GO_PACKAGES) -.PHONY: prepare-tests -prepare-tests: $(TARGET_SETUP) $(TEST_REPO) - .PHONY: lint lint: $(GOLINT) go run _support/lint.go @@ -134,7 +134,7 @@ clean: rm -rf $(TARGET_DIR) $(TEST_REPO) $(TEST_REPO_STORAGE_PATH) ./internal/service/ssh/gitaly-*-pack .ruby-bundle .PHONY: cover -cover: $(TARGET_SETUP) $(TEST_REPO) $(GOCOVMERGE) +cover: prepare-tests $(GOCOVMERGE) @echo "NOTE: make cover does not exit 1 on failure, don't use it to check for tests success!" mkdir -p "$(COVERAGE_DIR)" rm -f $(COVERAGE_DIR)/*.out "$(COVERAGE_DIR)/all.merged" "$(COVERAGE_DIR)/all.html" |