.gitlab-ci.yml 560 Bytes
Newer Older
minibikini's avatar
minibikini committed
1 2
image: elixir:1.7

minibikini's avatar
minibikini committed
3 4 5
variables:
  MIX_ENV: test

minibikini's avatar
minibikini committed
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
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - deps
    - _build

stages:
  - test
  - publish

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 --trace --preload-modules --cover

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