diff options
author | Alejandro Rodríguez <alejorro70@gmail.com> | 2018-10-10 23:58:18 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-10-16 10:53:23 +0300 |
commit | 4f175f9afd301dfe78fa2c8e9692de3320732074 (patch) | |
tree | 32b7022fd9cb471a023fbdde92074aead8029047 /Makefile | |
parent | 1b4bd9c32e2081a419081549dedfa1b488dfc242 (diff) |
Add unit tests for Blob from gitlab-ce + setup code
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -7,6 +7,7 @@ BIN_BUILD_DIR := $(TARGET_DIR)/bin PKG_BUILD_DIR := $(TARGET_DIR)/src/$(PKG) export TEST_REPO_STORAGE_PATH := $(BUILD_DIR)/internal/testhelper/testdata/data TEST_REPO := $(TEST_REPO_STORAGE_PATH)/gitlab-test.git +GIT_TEST_REPO := $(TEST_REPO_STORAGE_PATH)/gitlab-git-test.git INSTALL_DEST_DIR := $(DESTDIR)$(PREFIX)/bin/ COVERAGE_DIR := $(TARGET_DIR)/cover ASSEMBLY_ROOT := $(TARGET_DIR)/assembly @@ -119,8 +120,11 @@ $(TEST_REPO): # Git notes aren't fetched by default with git clone git -C $@ fetch origin refs/notes/*:refs/notes/* +$(GIT_TEST_REPO): + git clone --bare https://gitlab.com/gitlab-org/gitlab-git-test.git $@ + .PHONY: prepare-tests -prepare-tests: $(TARGET_SETUP) $(TEST_REPO) .ruby-bundle +prepare-tests: $(TARGET_SETUP) $(TEST_REPO) $(GIT_TEST_REPO) .ruby-bundle .PHONY: test test: test-go rspec @@ -181,7 +185,7 @@ codeclimate-report: .PHONY: clean clean: - rm -rf $(TARGET_DIR) $(TEST_REPO) $(TEST_REPO_STORAGE_PATH) ./internal/service/ssh/gitaly-*-pack .ruby-bundle + rm -rf $(TARGET_DIR) $(TEST_REPO_STORAGE_PATH) ./ruby/tmp/repositories ./internal/service/ssh/gitaly-*-pack .ruby-bundle .PHONY: cover cover: prepare-tests $(GOCOVMERGE) |