Skip to content

Commit 9eb00fe

Browse files
sapktechknowlogick
authored andcommitted
Run benchmark at tag to track performances (#6035)
1 parent 353282e commit 9eb00fe

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.drone.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,42 @@ pipeline:
195195
when:
196196
event: [ push, tag, pull_request ]
197197

198+
bench-sqlite:
199+
image: golang:1.11
200+
pull: true
201+
group: bench
202+
commands:
203+
- make bench-sqlite
204+
when:
205+
event: [ tag ]
206+
207+
bench-mysql:
208+
image: golang:1.11
209+
pull: true
210+
group: bench
211+
commands:
212+
- make bench-mysql
213+
when:
214+
event: [ tag ]
215+
216+
bench-mssql:
217+
image: golang:1.11
218+
pull: true
219+
group: bench
220+
commands:
221+
- make bench-mssql
222+
when:
223+
event: [ tag ]
224+
225+
bench-pgsql:
226+
image: golang:1.11
227+
pull: true
228+
group: bench
229+
commands:
230+
- make bench-pgsql
231+
when:
232+
event: [ tag ]
233+
198234
generate-coverage:
199235
image: golang:1.11
200236
pull: true

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ bench-sqlite: integrations.sqlite.test
252252
bench-mysql: integrations.test generate-ini
253253
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
254254

255+
.PHONY: bench-mssql
256+
bench-mssql: integrations.test generate-ini
257+
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mssql.ini ./integrations.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
258+
255259
.PHONY: bench-pgsql
256260
bench-pgsql: integrations.test generate-ini
257261
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/pgsql.ini ./integrations.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .

0 commit comments

Comments
 (0)