From 6eb3d5855d9c3d400e19e9d7314e8b2b5cc8c2e0 Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 9 Apr 2019 08:11:12 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 91c100b..6253ad3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,24 +1,29 @@ image: elixir:1.7.2 +variables: + MIX_ENV: test + cache: key: ${CI_COMMIT_REF_SLUG} paths: - deps - _build - stages: - - lint + - build - test - - analysis before_script: - mix local.hex --force - mix local.rebar --force + +build: + stage: build + script: - mix deps.get - mix compile --force lint: - stage: lint + stage: test script: - mix format --check-formatted @@ -29,6 +34,6 @@ unit-testing: - mix test --trace --cover analysis: - stage: analysis + stage: test script: - mix credo --strict