summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2023-07-02 19:33:06 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2023-08-03 13:24:32 +0200
commitee62a7b2988baca4ed49fe16ae1bf38908e6667d (patch)
treebad9902ba013c0fe7fe57816081424c1980fdc15
parent92244986d02786f40782cac8d1292b779ca6fb12 (diff)
CI: Use hexpm/elixir as global imageelixir-1.12
-rw-r--r--.gitlab-ci.yml14
1 files changed, 12 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ff3308e31..f51c5bb75 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,9 @@
-image: git.pleroma.social:5050/pleroma/pleroma/ci-base
-
+# https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp
variables: &global_variables
+ ELIXIR_IMG: hexpm/elixir
ELIXIR_VER: 1.12.3
+ ERLANG_VER: 24.3.4.13
+ ALPINE_VER: 3.18.2
POSTGRES_DB: pleroma_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
@@ -9,6 +11,8 @@ variables: &global_variables
DB_PORT: 5432
MIX_ENV: test
+image: ${ELIXIR_IMG}:${ELIXIR_VER}-erlang-${ERLANG_VER}-alpine-${ALPINE_VER}
+
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
@@ -36,6 +40,9 @@ stages:
before_script:
- echo $MIX_ENV
+ - apk add cmake file-dev git build-base
+ - mix local.hex --force
+ - mix local.rebar --force
- rm -rf _build/*/lib/pleroma
- mix deps.get
@@ -123,6 +130,7 @@ unit-testing:
alias: postgres
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
script:
+ - apk add exiftool ffmpeg imagemagick
- mix ecto.create
- mix ecto.migrate
- mix test --cover --preload-modules
@@ -149,6 +157,7 @@ unit-testing-erratic:
alias: postgres
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
script:
+ - apk add exiftool ffmpeg imagemagick
- mix ecto.create
- mix ecto.migrate
- mix test --only=erratic
@@ -183,6 +192,7 @@ unit-testing-rum:
<<: *global_variables
RUM_ENABLED: "true"
script:
+ - apk add exiftool ffmpeg imagemagick
- mix ecto.create
- mix ecto.migrate
- "mix ecto.migrate --migrations-path priv/repo/optional_migrations/rum_indexing/"