X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=.gitlab-ci.yml;h=0f8a0659b7ae9c10aca62eb52d44fb990fd646ce;hb=4499a7a0751ec992a78a1023e8e34300f06e14b1;hp=748bec74aa1cdb6bf10621b30395fc8371ea6d70;hpb=31e57cd1b34798afb07a8de4c0c95ef3c15e22ed;p=akkoma diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 748bec74a..0f8a0659b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,7 @@ cache: stages: - build - test + - benchmark - deploy - release @@ -28,6 +29,20 @@ build: - mix deps.get - mix compile --force +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.load_testing + unit-testing: stage: test services: @@ -70,7 +85,7 @@ docs-deploy: stage: deploy image: alpine:latest only: - - master@pleroma/pleroma + - stable@pleroma/pleroma - develop@pleroma/pleroma before_script: - apk add curl @@ -127,9 +142,10 @@ amd64: # TODO: Replace with upstream image when 1.9.0 comes out image: rinpatch/elixir:1.9.0-rc.0 only: &release-only - - master@pleroma/pleroma + - stable@pleroma/pleroma - develop@pleroma/pleroma - /^maint/.*$/@pleroma/pleroma + - /^release/.*$/@pleroma/pleroma artifacts: &release-artifacts name: "pleroma-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME" paths: