-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitlab-ci.yml
60 lines (53 loc) · 994 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
stages:
- test
- documentation
services:
- postgres:latest
.elixir-task:
image: elixir:1.11.4-alpine
cache:
paths:
- _build/
before_script:
- apk --update add postgresql-client git make g++
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
compilation:
stage: test
extends: .elixir-task
script:
- mix compile --force --warnings-as-errors
dialyzer:
stage: test
extends: .elixir-task
script:
- mix dialyzer
credo:
stage: test
extends: .elixir-task
script:
- mix credo --strict
test:
stage: test
extends: .elixir-task
script:
- mix test --trace --cover
coverage: '/\d+.\d+\%\s+\|\s+Total/'
variables:
POSTGRES_DATABASE: boruta_test
POSTGRES_HOST: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
MIX_ENV: test
pages:
extends: .elixir-task
stage: documentation
script:
- mix docs -f html
- mv doc/ public/
artifacts:
paths:
- public
only:
- master