image: elixir:1.7.2
variables:
MIX_ENV: test
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- deps
- _build
stages:
- build
- test
before_script:
- mix local.hex --force
- mix local.rebar --force
build:
stage: build
script:
- mix deps.get
- mix compile --force
lint:
stage: test
- mix format --check-formatted
unit-testing:
coverage: '/(\d+\.\d+\%) \| Total/'
- mix test --trace --cover
analysis:
- mix credo --strict