From aef739605987dc70424b83c56ba393462520af52 Mon Sep 17 00:00:00 2001
From: Jacob Vosmaer <jacob@gitlab.com>
Date: Fri, 30 Sep 2016 11:38:56 +0200
Subject: [PATCH] Cache gems in CI on tags

---
 .gitlab-ci.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 62e06683124..7d19f55aca3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -339,3 +339,16 @@ pages:
       - public
   only:
     - master
+
+# Insurance in case a gem needed by one of our releases gets yanked from
+# rubygems.org in the future.
+cache gems:
+  only:
+    - tags
+  variables:
+    SETUP_DB: "false"
+  script:
+    - bundle package --all --all-platforms
+  artifacts:
+    paths:
+      - vendor/cache
-- 
GitLab