2019-01-27 21:34:48 -05:00
|
|
|
stages:
|
2019-02-13 14:34:07 -05:00
|
|
|
- review
|
2019-01-27 21:34:48 -05:00
|
|
|
- source_check
|
|
|
|
|
|
|
|
variables:
|
|
|
|
JS_LOG: "js-report.txt"
|
|
|
|
|
2019-02-13 14:34:07 -05: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-27 21:34:48 -05: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 14:34:07 -05:00
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
- /^.*$/
|