Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into feature/jobs
[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 MIX_ENV: test
12
13 cache:
14 key: ${CI_COMMIT_REF_SLUG}
15 paths:
16 - deps
17 - _build
18 stages:
19 - lint
20 - test
21
22 before_script:
23 - mix local.hex --force
24 - mix local.rebar --force
25 - mix deps.get
26 - mix compile --force
27 - mix ecto.create
28 - mix ecto.migrate
29
30 lint:
31 stage: lint
32 script:
33 - mix format --check-formatted
34
35 unit-testing:
36 stage: test
37 script:
38 - mix test --trace