Use rules in CI

This commit is contained in:
Romain Vigier
2020-05-10 10:05:18 +02:00
parent a0f8aac8fa
commit 2b470d73c2
+6 -9
View File
@@ -33,12 +33,9 @@ before_script:
test:
stage: test
only:
- branches
- merge_requests
- pushes
- tags
- master
rules:
changes:
- src/
script:
- dnf --setopt=cachedir=$(pwd)/.dnf_cache --setopt=keepcache=True install -y node npm
- make deps-install
@@ -46,9 +43,9 @@ test:
build:
stage: build
only:
- tags
- merge_requests
rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: '$CI_COMMIT_TAG'
script:
- dnf --setopt=cachedir=$(pwd)/.dnf_cache --setopt=keepcache=True install -y gnome-shell gettext
- make build