Add test stage

This commit is contained in:
Romain Vigier
2020-02-14 01:37:25 +01:00
parent e9a160984d
commit 742d577d23
+18 -2
View File
@@ -17,19 +17,35 @@
image: fedora:latest
cache:
paths:
- node_modules
stages:
- test
- build
before_script:
- 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:
stage: build
only:
- tags
- merge_requests
script:
- dnf install gnome-shell gettext
- make build
artifacts:
name: "$CI_COMMIT_REF_NAME"
expose_as: "extension"
expose_as: "nightthemeswitcher@romainvigier.fr.shell-extension.zip"
paths:
- build/nightthemeswitcher@romainvigier.fr.shell-extension.zip