[librsvg] Gitlab-CI: Remove template duplication.
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Gitlab-CI: Remove template duplication.
- Date: Tue, 27 Feb 2018 20:08:23 +0000 (UTC)
commit e5f7d0bce8b5cf623fbcb63d7864bfa2a0ef8c9a
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Tue Feb 27 22:01:41 2018 +0200
Gitlab-CI: Remove template duplication.
.gitlab-ci.yml | 58 ++++++++++++++++++++--------------------------------------
1 file changed, 20 insertions(+), 38 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 119b8768..06c1d3b2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,40 +7,6 @@ stages:
- cross_distro_release
.test_template: &distro_test
- before_script:
- # CCache Config
- - mkdir -p ccache
- - export CCACHE_BASEDIR=${PWD}
- - export CCACHE_DIR=${PWD}/ccache
- - export CC="ccache gcc"
-
- # Only stuff inside the repo directory can be cached
- # Override the CARGO_HOME variable to force it location
- - export CARGO_HOME=".cargo_cache/"
- script:
- - rustc --version && cargo --version
- - ./autogen.sh --enable-debug
- - make check
-
- after_script:
- - mkdir png_artifacts
- - cp /tmp/*.png png_artifacts
-
- artifacts:
- when: on_failure
- paths:
- - tests/*.log
- - png_artifacts
-
- cache:
- # Each job will have it's own cache
- key: "$CI_JOB_NAME"
- paths:
- - target/
- - .cargo_cache/
- - ccache/
-
-.test_template_release: &distro_test_release
before_script:
# CCache Config
- mkdir -p ccache
@@ -89,12 +55,16 @@ stages:
fedora:test:
image: registry.gitlab.com/alatiera/librsvg-oci-images/fedora:latest
stage: test
+ before_script:
+ - export LIBRSVG_DEBUG="yes"
<<: *distro_test
fedora:test_release:
image: registry.gitlab.com/alatiera/librsvg-oci-images/fedora:latest
stage: test
- <<: *distro_test_release
+ before_script:
+ - export LIBRSVG_DEBUG="no"
+ <<: *distro_test
# CROSS DISTRO TEST STAGE
@@ -103,6 +73,8 @@ fedora:test_release:
fedora:rawhide:
image: registry.gitlab.com/alatiera/librsvg-oci-images/fedora:latest
stage: cross_distro
+ before_script:
+ - export LIBRSVG_DEBUG="yes"
<<: *distro_test
only:
- master
@@ -113,6 +85,8 @@ fedora:rawhide:
opensuse:tumbleweed:
image: registry.gitlab.com/alatiera/librsvg-oci-images/opensuse:tumbleweed
stage: cross_distro
+ before_script:
+ - export LIBRSVG_DEBUG="yes"
<<: *distro_test
only:
- master
@@ -123,6 +97,8 @@ opensuse:tumbleweed:
debian:testing:
image: registry.gitlab.com/alatiera/librsvg-oci-images/debian:testing
stage: cross_distro
+ before_script:
+ - export LIBRSVG_DEBUG="yes"
<<: *distro_test
only:
- master
@@ -150,7 +126,9 @@ debian:testing:
fedora:rawhide_release:
image: registry.gitlab.com/alatiera/librsvg-oci-images/fedora:latest
stage: cross_distro_release
- <<: *distro_test_release
+ before_script:
+ - export LIBRSVG_DEBUG="no"
+ <<: *distro_test
only:
- schedules
- tags
@@ -159,7 +137,9 @@ fedora:rawhide_release:
opensuse:tumbleweed_release:
image: registry.gitlab.com/alatiera/librsvg-oci-images/opensuse:tumbleweed
stage: cross_distro_release
- <<: *distro_test_release
+ before_script:
+ - export LIBRSVG_DEBUG="no"
+ <<: *distro_test
only:
- schedules
- tags
@@ -168,7 +148,9 @@ opensuse:tumbleweed_release:
debian:testing_release:
image: registry.gitlab.com/alatiera/librsvg-oci-images/debian:testing
stage: cross_distro_release
- <<: *distro_test_release
+ before_script:
+ - export LIBRSVG_DEBUG="no"
+ <<: *distro_test
only:
- schedules
- tags
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]