diff options
author | Jordan Petridis <jpetridis@gnome.org> | 2020-11-03 11:20:10 +0200 |
---|---|---|
committer | Jordan Petridis <jpetridis@gnome.org> | 2020-11-03 19:55:47 +0200 |
commit | 91f3f349859a5e3c2417a631cab13025d5084fbe (patch) | |
tree | 1d855bff367d47a0490b2354f02c361b99a9ed43 /.gitlab-ci.yml | |
parent | a56d3f405847342442e570df7db743b6ce57cd79 (diff) | |
download | librsvg-91f3f349859a5e3c2417a631cab13025d5084fbe.tar.gz |
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
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 22 |
1 files 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 |