Cache dnf data
This commit is contained in:
+6
-4
@@ -19,6 +19,7 @@ image: fedora:latest
|
|||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
- .dnf_cache
|
||||||
- node_modules
|
- node_modules
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
@@ -26,13 +27,14 @@ stages:
|
|||||||
- build
|
- build
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- dnf update -y
|
- mkdir .dnf_cache
|
||||||
- dnf install -y make
|
- dnf --setopt=cachedir=$(pwd)/.dnf_cache update -y
|
||||||
|
- dnf --setopt=cachedir=$(pwd)/.dnf_cache install -y make
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- dnf install -y node npm
|
- dnf --setopt=cachedir=$(pwd)/.dnf_cache install -y node npm
|
||||||
- make deps-install
|
- make deps-install
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
@@ -42,7 +44,7 @@ build:
|
|||||||
- tags
|
- tags
|
||||||
- merge_requests
|
- merge_requests
|
||||||
script:
|
script:
|
||||||
- dnf install -y gnome-shell gettext
|
- dnf --setopt=cachedir=$(pwd)/.dnf_cache install -y gnome-shell gettext
|
||||||
- make build
|
- make build
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_COMMIT_REF_NAME"
|
name: "$CI_COMMIT_REF_NAME"
|
||||||
|
|||||||
Reference in New Issue
Block a user