[librsvg] CI: Move cache setup inside the script



commit 8ae6f37a40de226dde4d825f4ea7219565b3096a
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]