154bc758b1e32c18b0ad4fe2ead0efe30b7532f4
[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 cache:
12 paths:
13 - deps
14 - _build
15 stages:
16 - lint
17 - test
18
19 before_script:
20 - mix local.hex --force
21 - mix local.rebar --force
22 - mix deps.get
23 - MIX_ENV=test mix ecto.create
24 - MIX_ENV=test mix ecto.migrate
25
26 lint:
27 stage: lint
28 script:
29 - MIX_ENV=test mix format --check-formatted
30
31 unit-testing:
32 stage: test
33 script:
34 - MIX_ENV=test mix test --trace