Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2017-10-09 12:08:50 +0300
committerJacob Vosmaer (GitLab) <jacob@gitlab.com>2017-10-09 12:08:50 +0300
commit8fa34beb8aff6cfc0ab75ad88fc8495c85816b16 (patch)
tree7777dae2c79a3d8b8aee8114d77de75bee05eaae /Makefile
parent7d83fffa7bdf55e9e0536e756545747d0c86453f (diff)
Use codecov for better code coverage reporting
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 760b8bc46..f32cd684f 100644
--- a/Makefile
+++ b/Makefile
@@ -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"