add CI
This commit is contained in:
parent
fbd7bfb178
commit
c6eb9f3066
1 changed files with 36 additions and 0 deletions
36
.gitlab-ci.yml
Normal file
36
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
image: elixir:1.7
|
||||
|
||||
variables:
|
||||
MIX_ENV: test
|
||||
|
||||
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
|
Loading…
Reference in a new issue