2022-06-10 12:37:41 +00:00
|
|
|
matrix:
|
|
|
|
ELIXIR_VERSION:
|
|
|
|
- 1.13
|
|
|
|
|
|
|
|
pipeline:
|
2022-07-15 12:27:16 +00:00
|
|
|
lint:
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
image: pleromaforkci/ci-base:1.13
|
|
|
|
commands:
|
|
|
|
- mix local.hex --force
|
|
|
|
- mix local.rebar --force
|
|
|
|
- mix format --check-formatted
|
|
|
|
|
2022-06-10 12:37:41 +00:00
|
|
|
build:
|
|
|
|
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
|
2022-06-11 16:18:52 +00:00
|
|
|
when:
|
|
|
|
event:
|
2022-06-29 09:33:57 +00:00
|
|
|
- pull_request
|
2022-06-10 12:37:41 +00:00
|
|
|
environment:
|
|
|
|
MIX_ENV: test
|
|
|
|
commands:
|
|
|
|
- mix local.hex --force
|
|
|
|
- mix local.rebar --force
|
|
|
|
- mix deps.get
|
|
|
|
- mix compile
|
|
|
|
|
|
|
|
test:
|
|
|
|
group: test
|
|
|
|
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
|
2022-06-11 16:18:52 +00:00
|
|
|
when:
|
|
|
|
event:
|
2022-06-29 09:33:57 +00:00
|
|
|
- pull_request
|
2022-06-10 12:37:41 +00:00
|
|
|
environment:
|
|
|
|
MIX_ENV: test
|
|
|
|
POSTGRES_DB: pleroma_test
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
DB_HOST: postgres
|
|
|
|
commands:
|
|
|
|
- mix local.hex --force
|
|
|
|
- mix local.rebar --force
|
2022-07-15 12:27:16 +00:00
|
|
|
- mix deps.get
|
2022-06-10 12:37:41 +00:00
|
|
|
- mix ecto.drop -f -q
|
|
|
|
- mix ecto.create
|
|
|
|
- mix ecto.migrate
|
|
|
|
- mix test --preload-modules --exclude erratic --exclude federated --max-cases 4
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:13
|
2022-07-15 12:27:16 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
2022-06-10 12:37:41 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_DB: pleroma_test
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|