commit: bbf93c03b41519318942b422fa3a3e7530f0f407
parent e8470008ec017295cacdba31578b85bb4c83aeb9
Author: Egor Kislitsyn <egor@kislitsyn.com>
Date: Sat, 9 Feb 2019 01:09:16 +0700
add gitlab ci
Diffstat:
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/.gitlab-ci.yml 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