Gitlab: Run benchmark in CI.
authorlain <lain@soykaf.club>
Thu, 10 Oct 2019 12:24:54 +0000 (14:24 +0200)
committerlain <lain@soykaf.club>
Thu, 10 Oct 2019 12:24:54 +0000 (14:24 +0200)
.gitlab-ci.yml
config/benchmark.exs

index d0c540b16f7ebcb5fd648ab1a60aa6d962a75098..09684df02928f450f61d162f439fa35dcd53e445 100644 (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
index b4f5dbdbd764d391991c9cb189ade5d1d3b03ed2..62ba42e289fc4363a853bbd930b7cca36c3cf0d7 100644 (file)
@@ -29,7 +29,8 @@ config :pleroma, :instance,
   email: "admin@example.com",
   notify_email: "noreply@example.com",
   skip_thread_containment: false,
-  federating: false
+  federating: false,
+  external_user_synchronization: false
 
 config :pleroma, :activitypub, sign_object_fetches: false