a4f9d856af
This reverts commit 6eb3d5855d
34 lines
479 B
YAML
34 lines
479 B
YAML
image: elixir:1.7.2
|
|
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- deps
|
|
- _build
|
|
|
|
stages:
|
|
- lint
|
|
- test
|
|
- analysis
|
|
|
|
before_script:
|
|
- mix local.hex --force
|
|
- mix local.rebar --force
|
|
- mix deps.get
|
|
- mix compile --force
|
|
|
|
lint:
|
|
stage: lint
|
|
script:
|
|
- mix format --check-formatted
|
|
|
|
unit-testing:
|
|
stage: test
|
|
coverage: '/(\d+\.\d+\%) \| Total/'
|
|
script:
|
|
- mix test --trace --cover
|
|
|
|
analysis:
|
|
stage: analysis
|
|
script:
|
|
- mix credo --strict
|