mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
ci: Add minimal continuous integration
Building gnome-shell is tricky due to the tight coupling with mutter, but until we figure out the best way forward, we can at least perform some basic syntax checking on the javascript bits. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/367
This commit is contained in:
parent
46575804cc
commit
36b9f45368
1 changed files with 18 additions and 0 deletions
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
stages:
|
||||
- source_check
|
||||
|
||||
variables:
|
||||
JS_LOG: "js-report.txt"
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue