mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 05:47:41 -04:00
CI: Use hexpm/elixir as global image
This commit is contained in:
parent
92244986d0
commit
ee62a7b298
1 changed files with 12 additions and 2 deletions
|
@ -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/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue