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