diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-01-13 21:06:54 -0300 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-14 00:06:54 +0000 |
commit | 565eb1811c67a8df89a22d65f5e725f88470de6d (patch) | |
tree | e873774b00db00188ff827339a6a811125ac7581 /Makefile | |
parent | 1751d5fcf200b7d78ec5543fa620174c69d2746a (diff) | |
download | gitea-565eb1811c67a8df89a22d65f5e725f88470de6d.tar.gz gitea-565eb1811c67a8df89a22d65f5e725f88470de6d.zip |
Add test for git + git lfs (#9753)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -119,6 +119,13 @@ go-check: exit 1; \ fi +.PHONY: git-check +git-check: + @if git lfs >/dev/null 2>&1 ; then : ; else \ + echo "Gitea requires git with lfs support to run tests." ; \ + exit 1; \ + fi + .PHONY: node-check node-check: $(eval NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?' | tr '.' ' ');)) @@ -213,7 +220,7 @@ fmt-check: fi; .PHONY: test -test: +test: git-check GO111MODULE=on $(GO) test -mod=vendor -tags='sqlite sqlite_unlock_notify' $(PACKAGES) .PHONY: test\#% @@ -352,19 +359,19 @@ bench-pgsql: integrations.pgsql.test generate-ini-pgsql integration-test-coverage: integrations.cover.test generate-ini-mysql GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out -integrations.mysql.test: $(GO_SOURCES) +integrations.mysql.test: git-check $(GO_SOURCES) GO111MODULE=on $(GO) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.mysql.test -integrations.mysql8.test: $(GO_SOURCES) +integrations.mysql8.test: git-check $(GO_SOURCES) GO111MODULE=on $(GO) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.mysql8.test -integrations.pgsql.test: $(GO_SOURCES) +integrations.pgsql.test: git-check $(GO_SOURCES) GO111MODULE=on $(GO) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.pgsql.test -integrations.mssql.test: $(GO_SOURCES) +integrations.mssql.test: git-check $(GO_SOURCES) GO111MODULE=on $(GO) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.mssql.test -integrations.sqlite.test: $(GO_SOURCES) +integrations.sqlite.test: git-check $(GO_SOURCES) GO111MODULE=on $(GO) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags 'sqlite sqlite_unlock_notify' integrations.cover.test: $(GO_SOURCES) |