2022-06-10 06:37:41 -06:00
|
|
|
depends_on:
|
|
|
|
- lint
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
ELIXIR_VERSION:
|
|
|
|
- 1.13
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
|
2022-06-11 10:18:52 -06:00
|
|
|
when:
|
|
|
|
event:
|
2022-06-11 12:53:36 -06:00
|
|
|
- push
|
2022-06-29 03:33:57 -06:00
|
|
|
- pull_request
|
2022-06-10 06:37:41 -06: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 10:18:52 -06:00
|
|
|
when:
|
|
|
|
event:
|
2022-06-11 12:53:36 -06:00
|
|
|
- push
|
2022-06-29 03:33:57 -06:00
|
|
|
- pull_request
|
2022-06-10 06:37:41 -06: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
|
|
|
|
- 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
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: pleroma_test
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|