From 1cb6ef2c336bff37672a41fd74db1fa5c38ed05f Mon Sep 17 00:00:00 2001 From: Robert Prehn <3952444+prehnRA@users.noreply.github.com> Date: Tue, 20 Jul 2021 16:15:04 -0500 Subject: [PATCH] fix: Get hex, rebar, and dependencies before credo --- .gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c5a29c9..7f23a8ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,7 +41,16 @@ test_1.12.1: credo: stage: test image: "elixir:1.12.1-alpine" - script: mix credo diff master --all + cache: + key: "test_1.12.1" + paths: + - _build/ + - deps/ + script: + - mix local.hex --force + - mix local.rebar --force + - mix deps.get + - mix credo diff master --all build_image_for_commit: stage: test