From 0cb6c5eb88442c0c703702e924d3924fbfcb4bce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@inrae.fr>
Date: Mon, 9 Mar 2020 22:50:58 +0100
Subject: [PATCH] =?UTF-8?q?Am=C3=A9liore=20l'installation=20de=20please=20?=
 =?UTF-8?q?et=20l'utilisation=20du=20cache=20en=20CI.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitignore     |  4 +---
 .gitlab-ci.yml | 12 +++++-------
 .plzconfig     |  3 +++
 3 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/.gitignore b/.gitignore
index 00d509c..9e7a7a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,2 @@
 /plz-out
-
-# Please output directory
-plz-out
+/.plz-cache
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 00461e0..0621b73 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,17 +2,15 @@ build:
   tags: [docker]
   image: busybox:glibc
   before_script:
-    - mkdir -p /usr/local/bin
-    - wget https://github.com/thought-machine/please/releases/download/v14.3.5/please_14.3.5_linux_amd64.tar.gz
-    - chmod +rx /usr/local/bin/*
+    - wget https://github.com/thought-machine/please/releases/download/v14.3.5/please_14.3.5_linux_amd64.tar.gz -O - | tar xz -C /bin --strip-components=1
   script:
-    - please build //theme
-    - cp -av plz-out/gen/reveal.js reveal.js
+    - please build :theme
+    - mv plz-out/gen/reveal.js reveal.js
   artifacts:
     name: reveal.js-$CI_COMMIT_REF_SLUG
     paths:
       - reveal.js/
   cache:
-    key: "$CI_COMMIT_REF_NAME"
+    key: "plz-cache-$CI_COMMIT_REF_SLUG"
     paths:
-      - plz-out
+      - .plz-cache
diff --git a/.plzconfig b/.plzconfig
index cc1feee..be09c56 100644
--- a/.plzconfig
+++ b/.plzconfig
@@ -1,2 +1,5 @@
 [please]
 version = 14.3.5
+
+[cache]
+dir=.plz-cache
-- 
GitLab