Use rules in CI
This commit is contained in:
+6
-9
@@ -33,12 +33,9 @@ before_script:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
only:
|
rules:
|
||||||
- branches
|
changes:
|
||||||
- merge_requests
|
- src/
|
||||||
- pushes
|
|
||||||
- tags
|
|
||||||
- master
|
|
||||||
script:
|
script:
|
||||||
- dnf --setopt=cachedir=$(pwd)/.dnf_cache --setopt=keepcache=True install -y node npm
|
- dnf --setopt=cachedir=$(pwd)/.dnf_cache --setopt=keepcache=True install -y node npm
|
||||||
- make deps-install
|
- make deps-install
|
||||||
@@ -46,9 +43,9 @@ test:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
rules:
|
||||||
- tags
|
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
|
||||||
- merge_requests
|
- if: '$CI_COMMIT_TAG'
|
||||||
script:
|
script:
|
||||||
- dnf --setopt=cachedir=$(pwd)/.dnf_cache --setopt=keepcache=True install -y gnome-shell gettext
|
- dnf --setopt=cachedir=$(pwd)/.dnf_cache --setopt=keepcache=True install -y gnome-shell gettext
|
||||||
- make build
|
- make build
|
||||||
|
|||||||
Reference in New Issue
Block a user