[gjs/iwyu-job: 7/8] CI: Add iwyu jobs



commit 9f7e66d9cab1790b611eec92dd4fe21ef715fb99
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 | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c0732f6e..69e0144c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -188,6 +188,16 @@ 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
+    - merge_requests
+
 #############################################
 #                Manual Jobs                #
 #############################################
@@ -199,6 +209,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]