From d15810f3b4dbb366a8a2da9314b4a5f04ada8236 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Erik=20Hedenstro=CC=88m?= <erik@hedenstroem.com>
Date: Fri, 18 Dec 2015 11:08:23 +0100
Subject: [PATCH] Moved rebar3 update to before_script

---
 .gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ca14a87..bebaf39 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,6 @@
+before_script:
+  - rebar3 update
+
 stages:
   - compile
   - test
@@ -21,7 +24,6 @@ hex_publish:
   script:
     - mkdir -p ~/.hex && printf "{key,<<\"$HEX_KEY\">>}.\n{username,<<\"$HEX_USERNAME\">>}.\n" > ~/.hex/hex.config
     - mkdir -p ~/.config/rebar3 && printf "{plugins, [rebar3_hex]}.\n" > ~/.config/rebar3/rebar.config
-    - rebar3 update
     - echo "Y" | rebar3 hex publish
 
 aws_publish:
-- 
GitLab