Merge branch '2018-12-17-update-frontend' into 'develop'
[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 stages:
17 - lint
18 - test
19
20 before_script:
21 - mix local.hex --force
22 - mix local.rebar --force
23 - mix deps.get
24 - MIX_ENV=test mix ecto.create
25 - MIX_ENV=test mix ecto.migrate
26
27 lint:
28 stage: lint
29 script:
30 - MIX_ENV=test mix format --check-formatted
31
32 unit-testing:
33 stage: test
34 script:
35 - MIX_ENV=test mix test --trace