@@ -119,6 +119,13 @@ go-check:
119
119
exit 1; \
120
120
fi
121
121
122
+ .PHONY : git-check
123
+ git-check :
124
+ @if git lfs > /dev/null 2>&1 ; then : ; else \
125
+ echo " Gitea requires git with lfs support to run tests." ; \
126
+ exit 1; \
127
+ fi
128
+
122
129
.PHONY : node-check
123
130
node-check :
124
131
$(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:
213
220
fi ;
214
221
215
222
.PHONY : test
216
- test :
223
+ test : git-check
217
224
GO111MODULE=on $(GO ) test -mod=vendor -tags=' sqlite sqlite_unlock_notify' $(PACKAGES )
218
225
219
226
.PHONY : test\# %
@@ -352,19 +359,19 @@ bench-pgsql: integrations.pgsql.test generate-ini-pgsql
352
359
integration-test-coverage : integrations.cover.test generate-ini-mysql
353
360
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
354
361
355
- integrations.mysql.test : $(GO_SOURCES )
362
+ integrations.mysql.test : git-check $(GO_SOURCES )
356
363
GO111MODULE=on $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.mysql.test
357
364
358
- integrations.mysql8.test : $(GO_SOURCES )
365
+ integrations.mysql8.test : git-check $(GO_SOURCES )
359
366
GO111MODULE=on $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.mysql8.test
360
367
361
- integrations.pgsql.test : $(GO_SOURCES )
368
+ integrations.pgsql.test : git-check $(GO_SOURCES )
362
369
GO111MODULE=on $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.pgsql.test
363
370
364
- integrations.mssql.test : $(GO_SOURCES )
371
+ integrations.mssql.test : git-check $(GO_SOURCES )
365
372
GO111MODULE=on $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.mssql.test
366
373
367
- integrations.sqlite.test : $(GO_SOURCES )
374
+ integrations.sqlite.test : git-check $(GO_SOURCES )
368
375
GO111MODULE=on $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags ' sqlite sqlite_unlock_notify'
369
376
370
377
integrations.cover.test : $(GO_SOURCES )
0 commit comments