Skip to content

Commit 159c3f4

Browse files
authored
Generate coverage with sqlite. (#18813)
1 parent 41aa49d commit 159c3f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,10 @@ bench-pgsql: integrations.pgsql.test generate-ini-pgsql
514514
integration-test-coverage: integrations.cover.test generate-ini-mysql
515515
GITEA_ROOT="$(CURDIR)" GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
516516

517+
.PHONY: integration-test-coverage-sqlite
518+
integration-test-coverage-sqlite: integrations.cover.sqlite.test generate-ini-sqlite
519+
GITEA_ROOT="$(CURDIR)" GITEA_CONF=integrations/sqlite.ini ./integrations.cover.sqlite.test -test.coverprofile=integration.coverage.out
520+
517521
integrations.mysql.test: git-check $(GO_SOURCES)
518522
$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations -o integrations.mysql.test
519523

@@ -532,6 +536,9 @@ integrations.sqlite.test: git-check $(GO_SOURCES)
532536
integrations.cover.test: git-check $(GO_SOURCES)
533537
$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations -coverpkg $(shell echo $(GO_PACKAGES) | tr ' ' ',') -o integrations.cover.test
534538

539+
integrations.cover.sqlite.test: git-check $(GO_SOURCES)
540+
$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations -coverpkg $(shell echo $(GO_PACKAGES) | tr ' ' ',') -o integrations.cover.sqlite.test -tags '$(TEST_TAGS)'
541+
535542
.PHONY: migrations.mysql.test
536543
migrations.mysql.test: $(GO_SOURCES)
537544
$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations/migration-test -o migrations.mysql.test

0 commit comments

Comments
 (0)