-depends_on:
-- lint
-
matrix:
ELIXIR_VERSION:
- - 1.10
- 1.13
pipeline:
- build:
- image: pleromaforkci/ci-base:${ELIXIR_VERSION}
- environment:
- MIX_ENV: test
+ lint:
+ when:
+ event:
+ - pull_request
+ image: pleromaforkci/ci-base:1.13
commands:
- - cp config/test.ci.exs config/test.secret.exs
- mix local.hex --force
- mix local.rebar --force
- - mix deps.get
- - mix compile
+ - mix format --check-formatted
- analyse:
- group: test
+ build:
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
+ when:
+ event:
+ - pull_request
environment:
MIX_ENV: test
commands:
- mix local.hex --force
- mix local.rebar --force
- - mix credo --strict --only=warnings,todo,fixme,consistency,readability
+ - mix deps.get
+ - mix compile
test:
group: test
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
+ when:
+ event:
+ - pull_request
environment:
MIX_ENV: test
POSTGRES_DB: pleroma_test
commands:
- mix local.hex --force
- mix local.rebar --force
+ - mix deps.get
- mix ecto.drop -f -q
- mix ecto.create
- mix ecto.migrate
services:
postgres:
image: postgres:13
+ when:
+ event:
+ - pull_request
environment:
POSTGRES_DB: pleroma_test
POSTGRES_USER: postgres