aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-02-11 18:09:50 +0100
committertechknowlogick <matti@mdranta.net>2019-02-11 12:09:50 -0500
commit9eb00fed13393a3239ef8f6db18a4714d2557065 (patch)
tree994b0feb45a9a12b251b7ad06b5c94915d60441e
parent353282e65880147408382ac4a44473272af53101 (diff)
downloadgitea-9eb00fed13393a3239ef8f6db18a4714d2557065.tar.gz
gitea-9eb00fed13393a3239ef8f6db18a4714d2557065.zip
Run benchmark at tag to track performances (#6035)
-rw-r--r--.drone.yml36
-rw-r--r--Makefile4
2 files changed, 40 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 560df26606..965af9b795 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -195,6 +195,42 @@ pipeline:
when:
event: [ push, tag, pull_request ]
+ bench-sqlite:
+ image: golang:1.11
+ pull: true
+ group: bench
+ commands:
+ - make bench-sqlite
+ when:
+ event: [ tag ]
+
+ bench-mysql:
+ image: golang:1.11
+ pull: true
+ group: bench
+ commands:
+ - make bench-mysql
+ when:
+ event: [ tag ]
+
+ bench-mssql:
+ image: golang:1.11
+ pull: true
+ group: bench
+ commands:
+ - make bench-mssql
+ when:
+ event: [ tag ]
+
+ bench-pgsql:
+ image: golang:1.11
+ pull: true
+ group: bench
+ commands:
+ - make bench-pgsql
+ when:
+ event: [ tag ]
+
generate-coverage:
image: golang:1.11
pull: true
diff --git a/Makefile b/Makefile
index 1a7d0c33e6..c1c87ef93a 100644
--- a/Makefile
+++ b/Makefile
@@ -252,6 +252,10 @@ bench-sqlite: integrations.sqlite.test
bench-mysql: integrations.test generate-ini
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
+.PHONY: bench-mssql
+bench-mssql: integrations.test generate-ini
+ GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mssql.ini ./integrations.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
+
.PHONY: bench-pgsql
bench-pgsql: integrations.test generate-ini
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .