Add test stage
This commit is contained in:
+18
-2
@@ -17,19 +17,35 @@
|
|||||||
|
|
||||||
image: fedora:latest
|
image: fedora:latest
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- build
|
- build
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- dnf update -y
|
- dnf update -y
|
||||||
- dnf install -y make gnome-shell gettext
|
- dnf install -y make
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- dnf install node npm
|
||||||
|
- make deps-install
|
||||||
|
- make test
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
- merge_requests
|
||||||
script:
|
script:
|
||||||
|
- dnf install gnome-shell gettext
|
||||||
- make build
|
- make build
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_COMMIT_REF_NAME"
|
name: "$CI_COMMIT_REF_NAME"
|
||||||
expose_as: "extension"
|
expose_as: "nightthemeswitcher@romainvigier.fr.shell-extension.zip"
|
||||||
paths:
|
paths:
|
||||||
- build/nightthemeswitcher@romainvigier.fr.shell-extension.zip
|
- build/nightthemeswitcher@romainvigier.fr.shell-extension.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user