[gjs/iwyu-job: 1/2] CI: Add iwyu jobs



commit d57d56b6c8c2c882e49d91976c9157bdb7f4a6a2
Author: Philip Chimento <philip chimento gmail com>
Date:   Wed Jun 3 14:30:12 2020 -0700

    CI: Add iwyu jobs
    
    This adds an 'iwyu' job that runs only on the changed files, hopefully
    quickly, when pushing a branch or creating a merge request. There is
    also an 'iwyu-full' job that runs on all files, and takes 5 to 10
    minutes, so is only run when manually triggered.

 .gitlab-ci.yml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c0732f6e..a16a844c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -188,6 +188,17 @@ eslint:
       - .eslintrc.yml
       - '**/.eslintrc.yml'
 
+iwyu:
+  when: on_success
+  stage: source_check
+  image: registry.gitlab.gnome.org/gnome/gjs:fedora.mozjs68-debug
+  script:
+    - ./tools/run_iwyu.sh origin/master
+  only:
+    - branches
+  except:
+    - /^gnome-\d+-\d+$/
+
 #############################################
 #                Manual Jobs                #
 #############################################
@@ -199,6 +210,13 @@ coverage:
   except:
     - schedules
 
+iwyu-full:
+  when: manual
+  stage: manual
+  image: registry.gitlab.gnome.org/gnome/gjs:fedora.mozjs68-debug
+  script:
+    - ./tools/run_iwyu.sh
+
 sanitizer_clang:
   <<: *build
   stage: manual


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