Merge branch 'feld-test.secret' into feld-warnings
[akkoma] / .gitlab-ci.yml
1 image: elixir:1.6.4
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 stages:
13 - lint
14 - test
15
16 before_script:
17 - mix local.hex --force
18 - mix local.rebar --force
19 - mix deps.get
20 - MIX_ENV=test mix ecto.create
21 - MIX_ENV=test mix ecto.migrate
22
23 lint:
24 stage: lint
25 script:
26 - MIX_ENV=test mix format --check-formatted
27
28 unit-testing:
29 stage: test
30 script:
31 - MIX_ENV=test mix test --trace