Combine identical Makefile rules (#2916)
This commit is contained in:
parent
1cb01817c9
commit
6ee65757c7
1 changed files with 6 additions and 9 deletions
15
Makefile
15
Makefile
|
@ -181,12 +181,12 @@ generate-ini:
|
||||||
integrations/pgsql.ini.tmpl > integrations/pgsql.ini
|
integrations/pgsql.ini.tmpl > integrations/pgsql.ini
|
||||||
|
|
||||||
.PHONY: test-mysql
|
.PHONY: test-mysql
|
||||||
test-mysql: integrations.mysql.test generate-ini
|
test-mysql: integrations.test generate-ini
|
||||||
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.mysql.test
|
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.test
|
||||||
|
|
||||||
.PHONY: test-pgsql
|
.PHONY: test-pgsql
|
||||||
test-pgsql: integrations.pgsql.test generate-ini
|
test-pgsql: integrations.test generate-ini
|
||||||
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.pgsql.test
|
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.test
|
||||||
|
|
||||||
.PHONY: bench-sqlite
|
.PHONY: bench-sqlite
|
||||||
bench-sqlite: integrations.sqlite.test
|
bench-sqlite: integrations.sqlite.test
|
||||||
|
@ -205,11 +205,8 @@ bench-pgsql: integrations.pgsql.test generate-ini
|
||||||
integration-test-coverage: integrations.cover.test generate-ini
|
integration-test-coverage: integrations.cover.test generate-ini
|
||||||
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
|
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
|
||||||
|
|
||||||
integrations.mysql.test: $(SOURCES)
|
integrations.test: $(SOURCES)
|
||||||
$(GO) test -c code.gitea.io/gitea/integrations -o integrations.mysql.test
|
$(GO) test -c code.gitea.io/gitea/integrations -o integrations.test
|
||||||
|
|
||||||
integrations.pgsql.test: $(SOURCES)
|
|
||||||
$(GO) test -c code.gitea.io/gitea/integrations -o integrations.pgsql.test
|
|
||||||
|
|
||||||
integrations.sqlite.test: $(SOURCES)
|
integrations.sqlite.test: $(SOURCES)
|
||||||
$(GO) test -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags 'sqlite'
|
$(GO) test -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags 'sqlite'
|
||||||
|
|
Reference in a new issue