mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-24 02:59:42 +08:00
Run benchmark at tag to track performances (#6035)
This commit is contained in:
parent
353282e658
commit
9eb00fed13
36
.drone.yml
36
.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
|
||||
|
4
Makefile
4
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 .
|
||||
|
Loading…
Reference in New Issue
Block a user