aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-11-17 02:17:39 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-17 18:17:39 +0800
commit6ee65757c7ada6182948456de0b2ba9533e05fc7 (patch)
treedd5bcf7e25ab79b07fbe677781b6a9f6214d6065 /Makefile
parent1cb01817c90b77f2b73470254a85085a74884800 (diff)
downloadgitea-6ee65757c7ada6182948456de0b2ba9533e05fc7.tar.gz
gitea-6ee65757c7ada6182948456de0b2ba9533e05fc7.zip
Combine identical Makefile rules (#2916)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 878c5e9057..1823a377f8 100644
--- a/Makefile
+++ b/Makefile
@@ -181,12 +181,12 @@ generate-ini:
integrations/pgsql.ini.tmpl > integrations/pgsql.ini
.PHONY: test-mysql
-test-mysql: integrations.mysql.test generate-ini
- GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.mysql.test
+test-mysql: integrations.test generate-ini
+ GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.test
.PHONY: test-pgsql
-test-pgsql: integrations.pgsql.test generate-ini
- GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.pgsql.test
+test-pgsql: integrations.test generate-ini
+ GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.test
.PHONY: bench-sqlite
bench-sqlite: integrations.sqlite.test
@@ -205,11 +205,8 @@ bench-pgsql: integrations.pgsql.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
-integrations.mysql.test: $(SOURCES)
- $(GO) test -c code.gitea.io/gitea/integrations -o integrations.mysql.test
-
-integrations.pgsql.test: $(SOURCES)
- $(GO) test -c code.gitea.io/gitea/integrations -o integrations.pgsql.test
+integrations.test: $(SOURCES)
+ $(GO) test -c code.gitea.io/gitea/integrations -o integrations.test
integrations.sqlite.test: $(SOURCES)
$(GO) test -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags 'sqlite'