Compile pleroma before ecto migrate
[akkoma] / .gitlab-ci.yml
1 image: elixir:1.7.2
2
3 services:
4 - postgres:9.6.2
5
6 variables:
7 POSTGRES_DB: pleroma_test
8 POSTGRES_USER: postgres
9 POSTGRES_PASSWORD: postgres
10 DB_HOST: postgres
11
12 cache:
13 key: ${CI_COMMIT_REF_SLUG}
14 paths:
15 - deps
16 - _build
17 stages:
18 - lint
19 - test
20
21 before_script:
22 - mix local.hex --force
23 - mix local.rebar --force
24 - mix deps.get
25 - mix compile --force
26 - MIX_ENV=test mix ecto.create
27 - MIX_ENV=test mix ecto.migrate
28
29 lint:
30 stage: lint
31 script:
32 - MIX_ENV=test mix format --check-formatted
33
34 unit-testing:
35 stage: test
36 script:
37 - MIX_ENV=test mix test --trace