You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
479 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. image: elixir:1.8.1
  2. cache:
  3. key: ${CI_COMMIT_REF_SLUG}
  4. paths:
  5. - deps
  6. - _build
  7. stages:
  8. - lint
  9. - test
  10. - analysis
  11. before_script:
  12. - mix local.hex --force
  13. - mix local.rebar --force
  14. - mix deps.get
  15. - mix compile --force
  16. lint:
  17. stage: lint
  18. script:
  19. - mix format --check-formatted
  20. unit-testing:
  21. stage: test
  22. coverage: '/(\d+\.\d+\%) \| Total/'
  23. script:
  24. - mix test --trace --cover
  25. analysis:
  26. stage: analysis
  27. script:
  28. - mix credo --strict