2019-01-28 02:34:48 +00:00
|
|
|
stages:
|
2019-02-13 19:34:07 +00:00
|
|
|
- review
|
2019-01-28 02:34:48 +00:00
|
|
|
- source_check
|
|
|
|
|
|
|
|
variables:
|
|
|
|
JS_LOG: "js-report.txt"
|
|
|
|
|
2019-02-13 19:34:07 +00:00
|
|
|
check_commit_log:
|
|
|
|
image: registry.fedoraproject.org/fedora:latest
|
|
|
|
stage: review
|
|
|
|
before_script:
|
|
|
|
- dnf install -y git
|
|
|
|
script:
|
|
|
|
- ./.gitlab-ci/check-commit-log.sh
|
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
|
2019-01-28 02:34:48 +00:00
|
|
|
js_check:
|
|
|
|
image: registry.fedoraproject.org/fedora:latest
|
|
|
|
stage: source_check
|
|
|
|
before_script:
|
|
|
|
- dnf install -y findutils mozjs60-devel
|
|
|
|
script:
|
|
|
|
- find js -name '*.js' -exec js60 -c -s '{}' ';' 2>&1 | tee $JS_LOG
|
|
|
|
- (! grep -q . $JS_LOG)
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- ${JS_LOG}
|
|
|
|
when: on_failure
|
2019-02-13 19:34:07 +00:00
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
- /^.*$/
|