Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run benchmark at tag to track performances #6035

Merged
merged 2 commits into from
Feb 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down