From bbf93c03b41519318942b422fa3a3e7530f0f407 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Sat, 9 Feb 2019 01:09:16 +0700 Subject: [PATCH] add gitlab ci --- .gitlab-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..afce633 --- /dev/null +++ b/.gitlab-ci.yml @@ -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