It doesn't make too much sense to declare parts of the existing style "legacy", but then enforce it via CI. To allow for a gradual switch, generate a report with all issues that eslint considers errors in both configurations. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/50
26 lines
520 B
YAML
26 lines
520 B
YAML
stages:
|
|
- source_check
|
|
- build
|
|
|
|
variables:
|
|
LINT_LOG: "eslint-report.txt"
|
|
|
|
eslint:
|
|
image: registry.gitlab.gnome.org/gnome/gjs:fedora.static-analysis
|
|
stage: source_check
|
|
script:
|
|
- sh lint/generate-report.sh -o $LINT_LOG || { cat $LINT_LOG; false; }
|
|
artifacts:
|
|
paths:
|
|
- ${LINT_LOG}
|
|
when: on_failure
|
|
|
|
build-shell-extensions:
|
|
image: fedora:latest
|
|
stage: build
|
|
before_script:
|
|
- dnf install -y meson gettext mozjs60-devel
|
|
script:
|
|
- meson _build .
|
|
- ninja -C _build test install
|