.gitlab-ci.yml 603 Bytes
Newer Older
1
image: elixir:1.9-alpine
kaniini's avatar
kaniini committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

variables:
  MIX_ENV: test

cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - deps
    - _build

stages:
  - test
  - publish

before_script:
17
  - apk add elixir build-base cmake
kaniini's avatar
kaniini committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
  - 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 --trace --preload-modules --cover

analysis:
  stage: test
  script:
    - mix credo --strict --only=warnings,todo,fixme,consistency,readability