[librsvg: 2/5] Enable ccache.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/5] Enable ccache.
- Date: Tue, 27 Feb 2018 14:23:58 +0000 (UTC)
commit 21820e497840c69da44ef12e4e9616b76a3acabe
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Tue Feb 27 10:09:44 2018 +0200
Enable ccache.
.gitlab-ci.yml | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d7bb27e9..24d2788e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,10 +6,17 @@ stages:
- distro_test
.test_template: &distro_test
- script:
+ 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
@@ -30,12 +37,20 @@ stages:
paths:
- target/
- .cargo_cache/
+ - ccache/
.test_template: &distro_test_release
- script:
+ 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
- make check
@@ -56,6 +71,7 @@ stages:
paths:
- target/
- .cargo_cache/
+ - ccache/
# .deb_template: &deb_deps
# before_script:
@@ -114,11 +130,10 @@ debian:testing:
# <<: *deb_deps
# <<: *distro_test
# only:
-# refs:
-# - master
-# - schedules
-# - tags
-# - web
+# - master
+# - schedules
+# - tags
+# - web
# Configure and run rustfmt on nightly
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]