From 4edc7031ebed31fba1b229bcd8f0b42336022926 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Fri, 14 Feb 2020 02:20:27 +0100 Subject: [PATCH] Cache dnf data --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 97e2d53..5ca908c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,7 @@ image: fedora:latest cache: paths: + - .dnf_cache - node_modules stages: @@ -26,13 +27,14 @@ stages: - build before_script: - - dnf update -y - - dnf install -y make + - mkdir .dnf_cache + - dnf --setopt=cachedir=$(pwd)/.dnf_cache update -y + - dnf --setopt=cachedir=$(pwd)/.dnf_cache install -y make test: stage: test script: - - dnf install -y node npm + - dnf --setopt=cachedir=$(pwd)/.dnf_cache install -y node npm - make deps-install - make test @@ -42,7 +44,7 @@ build: - tags - merge_requests script: - - dnf install -y gnome-shell gettext + - dnf --setopt=cachedir=$(pwd)/.dnf_cache install -y gnome-shell gettext - make build artifacts: name: "$CI_COMMIT_REF_NAME"