Gitlab: Run benchmark in CI.

This commit is contained in:
lain 2019-10-10 14:24:54 +02:00
commit 02f8e2a8ab
2 changed files with 16 additions and 1 deletions

View file

@ -15,6 +15,7 @@ cache:
stages:
- build
- test
- benchmark
- deploy
- release
@ -44,6 +45,19 @@ docs-build:
paths:
- priv/static/doc
benchmark:
stage: benchmark
variables:
MIX_ENV: benchmark
services:
- name: lainsoykaf/postgres-with-rum
alias: postgres
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
script:
- mix deps.get
- mix ecto.create
- mix ecto.migrate
- mix pleroma.benchmark
unit-testing:
stage: test