ci: Skip source_check stage when appropriate

We don't have to run the static analyzer on javascript sources when
no javascript source was changed.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408
This commit is contained in:
Florian Müllner 2019-02-12 20:17:07 +01:00 committed by Georges Basile Stavracas Neto
parent d671eb1969
commit f248b91f82

View File

@ -23,6 +23,9 @@ js_check:
script:
- find js -name '*.js' -exec js60 -c -s '{}' ';' 2>&1 | tee $JS_LOG
- (! grep -q . $JS_LOG)
only:
changes:
- js/**/*
artifacts:
paths:
- ${JS_LOG}