Simplify the NetBSD rc script.
[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 - _build
17 stages:
18 - lint
19 - test
20
21 before_script:
22 - mix local.hex --force
23 - mix local.rebar --force
24 - mix deps.get
25 - MIX_ENV=test mix ecto.create
26 - MIX_ENV=test mix ecto.migrate
27
28 lint:
29 stage: lint
30 script:
31 - MIX_ENV=test mix format --check-formatted
32
33 unit-testing:
34 stage: test
35 script:
36 - MIX_ENV=test mix test --trace