diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a8388a8..af30aee2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,20 @@ 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: + - eslint -o $LINT_LOG -c lint/eslintrc-legacy.json --no-color . || { cat $LINT_LOG; false; } + artifacts: + paths: + - ${LINT_LOG} + when: on_failure + build-shell-extensions: image: fedora:latest stage: build