forked from astarte-platform/astarte_rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
41 lines (38 loc) · 916 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
stages:
- test
variables:
APPLICATION_NAME: astarte_rpc
mix:test-coverage:
stage: test
image: elixir:1.8.1
services:
- rabbitmq:3.7.21
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- deps
- _build
before_script:
- mix local.hex --force
- mix local.rebar
- mix deps.get
script:
- mix format --check-formatted
- mix coveralls
mix:test-dialyzer:
stage: test
image: elixir:1.8.1
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- deps
- _build
- dialyzer_cache
before_script:
- mix local.hex --force
- mix local.rebar
- export MIX_ENV=ci
- mix deps.get
script:
# TODO: we do this until we fix all dialyzer errors to force a CI success, so that plts get cached
- mix dialyzer || echo "Done"