e9d7f88b1164007ef88ad7524113862f1d36ec57
[akkoma] / .woodpecker / .test.yml
1 depends_on:
2 - lint
3
4 matrix:
5 ELIXIR_VERSION:
6 - 1.10
7 - 1.13
8
9 pipeline:
10 build:
11 image: pleromaforkci/ci-base:${ELIXIR_VERSION}
12 environment:
13 MIX_ENV: test
14 commands:
15 - cp config/test.ci.exs config/test.secret.exs
16 - mix local.hex --force
17 - mix local.rebar --force
18 - mix deps.get
19 - mix compile
20
21 analyse:
22 group: test
23 image: pleromaforkci/ci-base:${ELIXIR_VERSION}
24 environment:
25 MIX_ENV: test
26 commands:
27 - mix local.hex --force
28 - mix local.rebar --force
29 - mix credo --strict --only=warnings,todo,fixme,consistency,readability
30
31 test:
32 group: test
33 image: pleromaforkci/ci-base:${ELIXIR_VERSION}
34 environment:
35 MIX_ENV: test
36 POSTGRES_DB: pleroma_test
37 POSTGRES_USER: postgres
38 POSTGRES_PASSWORD: postgres
39 DB_HOST: postgres
40 commands:
41 - mix local.hex --force
42 - mix local.rebar --force
43 - mix ecto.drop -f -q
44 - mix ecto.create
45 - mix ecto.migrate
46 - mix test --preload-modules --exclude erratic --exclude federated --max-cases 4
47
48 services:
49 postgres:
50 image: postgres:13
51 environment:
52 POSTGRES_DB: pleroma_test
53 POSTGRES_USER: postgres
54 POSTGRES_PASSWORD: postgres