matrix:
ELIXIR_VERSION:
- - 1.10
- 1.13
pipeline:
build:
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
+ when:
+ event:
+ - push
+ - pull_request
environment:
MIX_ENV: test
commands:
- - cp config/test.ci.exs config/test.secret.exs
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile
- analyse:
- group: test
- image: pleromaforkci/ci-base:${ELIXIR_VERSION}
- environment:
- MIX_ENV: test
- commands:
- - mix local.hex --force
- - mix local.rebar --force
- - mix credo --strict --only=warnings,todo,fixme,consistency,readability
-
test:
group: test
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
+ when:
+ event:
+ - push
+ - pull_request
environment:
MIX_ENV: test
POSTGRES_DB: pleroma_test