31 lines
430 B
YAML
31 lines
430 B
YAML
image: elixir:1.13
|
|
|
|
variables:
|
|
MIX_ENV: test
|
|
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- deps
|
|
- _build
|
|
|
|
stages:
|
|
- test
|
|
|
|
before_script:
|
|
- mix local.hex --force
|
|
- mix local.rebar --force
|
|
- mix deps.get
|
|
- mix compile --force
|
|
|
|
lint:
|
|
stage: test
|
|
script:
|
|
- mix format --check-formatted
|
|
|
|
unit-testing:
|
|
stage: test
|
|
coverage: '/(\d+\.\d+\%) \| Total/'
|
|
script:
|
|
- mix test --preload-modules --cover
|