[gnome-shell/wip/fmuellner/more-ci: 6/10] ci: Skip source_check stage when appropriate



commit 2d40079c2e9887958eb9990c4e4754f23ba38c88
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Feb 12 20:17:07 2019 +0100

    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.

 .gitlab-ci.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 46d86f85c..51c28a47d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,10 +23,12 @@ js_check:
     script:
         - find js -name '*.js' -exec js60 -c -s '{}' ';' 2>&1 | tee $JS_LOG
         - (! grep -q . $JS_LOG)
+    only:
+        - merge_requests
+        - /^.*$/
+        changes:
+            - js/**/*
     artifacts:
         paths:
             - ${JS_LOG}
         when: on_failure
-    only:
-        - merge_requests
-        - /^.*$/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]