[librsvg/alatiera/debian-workaround-take-2] CI: Move cache setup inside the script



commit 99319c6bac0bdf70c550f3487aab4ae904c32259
Author: Jordan Petridis <jpetridis gnome org>
Date:   Thu Oct 11 10:48:10 2018 +0300

    CI: Move cache setup inside the script
    
    This will allow us to use the before_script block
    from jobs calling the template. (Will be needed to
    work around a debian issue #331)

 .gitlab-ci.yml | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 126de8ee..5401487b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,7 +27,7 @@ stages:
   - cross_distro
 
 .test_template: &test
-  before_script:
+  script:
     # CCache Config
     - mkdir -p ccache
     - mkdir -p .cargo_cache
@@ -38,14 +38,13 @@ stages:
     # Only stuff inside the repo directory can be cached
     # Override the CARGO_HOME variable to force it location
     - export CARGO_HOME="${PWD}/.cargo_cache"
-  script:
+
     - rustc --version && cargo --version
-    - |
-      mkdir -p _build
-      cd _build
-      ../autogen.sh --enable-gtk-doc --enable-vala
-      make
-      make check
+    - mkdir -p _build
+    - cd _build
+    - ../autogen.sh --enable-gtk-doc --enable-vala
+    - make
+    - make check
 
   artifacts:
     when: on_failure


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]