74a81824f9586f1ce26a2a7af1adee0423753430
[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 add git
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