[librsvg: 1/3] ci: replace .common template with default key




commit 91f3f349859a5e3c2417a631cab13025d5084fbe
Author: Jordan Petridis <jpetridis gnome org>
Date:   Tue Nov 3 11:20:10 2020 +0200

    ci: replace .common template with default key
    
    Useful note, default inheritence can be disabled if needed
    with `inherit: default:` or straight overwritten.
    
    https://docs.gitlab.com/ce/ci/yaml/README.html#global-defaults

 .gitlab-ci.yml | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3dc3b404..b59b50e4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,7 +21,7 @@ stages:
   - release
   - docs
 
-.common:
+default:
   interruptible: true
   before_script:
     - rustc --version
@@ -57,17 +57,13 @@ stages:
 
 check:
   stage: check
-  extends:
-    - .common
-    - .cache_push
+  extends: '.cache_push'
   needs: []
   script:
     - sudo -E cargo check --workspace
 
 fmt:
   stage: lint
-  extends:
-    - .common
   needs:
     - job: check
   script:
@@ -75,9 +71,7 @@ fmt:
 
 clippy:
   stage: lint
-  extends:
-    - .common
-    - .cache
+  extends: '.cache'
   needs:
     - job: check
   script:
@@ -98,8 +92,6 @@ clippy:
 cargo_test:
   stage: unit test
   extends:
-  extends:
-    - .common
     # Tests require extra crates, hence cache is pushed
     - .cache_push
   needs:
@@ -115,9 +107,7 @@ cargo_test:
     - sudo -E cargo test -- --skip cmdline --skip loading_crash --skip reference --skip render_crash
 
 .make:
-  extends:
-    - .common
-    - .cache
+  extends: '.cache'
   needs:
     - job: cargo_test
   script:
@@ -191,9 +181,7 @@ distcheck:
 
 pages:
   stage: docs
-  extends:
-    - .common
-    - .cache
+  extends: '.cache'
   script:
     - mkdir -p public/doc
     - sudo -E cargo doc --document-private-items --no-deps


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