add gitlab ci

This commit is contained in:
Egor Kislitsyn 2019-02-09 01:09:16 +07:00
parent e8470008ec
commit bbf93c03b4

26
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,26 @@
image: elixir:1.7.2
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- deps
- _build
stages:
- lint
- test
before_script:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile --force
lint:
stage: lint
script:
- mix format --check-formatted
unit-testing:
stage: test
script:
- mix test --trace