eslint requires a file/directory, and will fail when the parameter is not specified. Unfortunately it only indicates the failure by printing its help output, but not via its return value, so our test still completes successfully. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/105
41 lines
861 B
YAML
41 lines
861 B
YAML
stages:
|
|
- commit_check
|
|
- source_check
|
|
- build
|
|
|
|
variables:
|
|
LINT_LOG: "eslint-report.txt"
|
|
|
|
.only_default: &only_default
|
|
only:
|
|
- branches
|
|
- tags
|
|
- merge_requests
|
|
|
|
check_commit_log:
|
|
image: registry.gitlab.gnome.org/gnome/gjs:fedora.static-analysis
|
|
stage: commit_check
|
|
script:
|
|
- ./.gitlab-ci/check-commit-log.sh
|
|
only:
|
|
- merge_requests
|
|
|
|
eslint:
|
|
image: registry.gitlab.gnome.org/gnome/gnome-shell/extension-ci:v1
|
|
stage: source_check
|
|
script:
|
|
- eslint -o $LINT_LOG extensions --no-color || { cat $LINT_LOG; false; }
|
|
<<: *only_default
|
|
artifacts:
|
|
paths:
|
|
- ${LINT_LOG}
|
|
when: on_failure
|
|
|
|
build-shell-extensions:
|
|
image: registry.gitlab.gnome.org/gnome/gnome-shell/extension-ci:v1
|
|
stage: build
|
|
script:
|
|
- meson _build .
|
|
- ninja -C _build test install
|
|
<<: *only_default
|