[gjs: 1/2] CI: run coverage on every "push"



commit 66b474a806b15a58670eb3f908e2dd1f8affef90
Author: Claudio André <claudioandre br gmail com>
Date:   Fri Jul 6 17:04:49 2018 -0300

    CI: run coverage on every "push"
    
    If we don't run coverage on every push, the coverage badge will
    report the unknown status.
    
    Also, the patch defines that the publication job (whose name is pages)
    will run only:
    - on "pushes", for coverage.
    - on "schedules", for code statistics.
    
    [skip images][fedora.static-analysis] needed while master is unstable.

 .gitlab-ci.yml | 68 +++++++++++++++++++++++++++++-----------------------------
 1 file changed, 34 insertions(+), 34 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4cc1e4be..31a6e244 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -179,6 +179,40 @@ no_profiler:
   except:
     - schedules
 
+# Generates
+# The Code Coverage Report
+coverage-automatic:
+  <<: *build
+  <<: *coverage
+  stage: source_check
+  image: claudioandre/spidermonkey:SM52-gcc.ubuntu-dev
+  variables:
+    TASK_ID: "coverage"
+    BUILD_OPTS: "--enable-code-coverage"
+    coverage: '/^Lines:.\d+.\d+.(\d+\.\d+\%)/'
+  except:
+    - schedules
+  only:
+    refs:
+      - master@GNOME/gjs
+
+# Publishes
+# The reports (coverage and code statistics)
+pages:
+  stage: delivery
+  dependencies:
+    - coverage-automatic
+    - code_statistics
+  script:
+    - mv $(pwd)/coverage/ public/ || true
+    - mv $(pwd)/analysis/report.txt public/ || true
+  artifacts:
+    paths:
+      - public
+  only:
+    refs:
+      - master@GNOME/gjs
+
 #############################################
 #              Static Analyzers             #
 #############################################
@@ -245,40 +279,6 @@ code_statistics:
     variables:
       - $CRON_FREQUENCY == "Daily"
 
-# Generates
-# The Code Coverage Report
-coverage:
-  <<: *build
-  <<: *coverage
-  stage: source_check
-  image: claudioandre/spidermonkey:SM52-gcc.ubuntu-dev
-  variables:
-    TASK_ID: "coverage"
-    BUILD_OPTS: "--enable-code-coverage"
-    coverage: '/^Lines:.\d+.\d+.(\d+\.\d+\%)/'
-  only:
-    variables:
-      - $CRON_FREQUENCY == "Daily"
-
-# Publish
-# The Coverage Report generated above
-pages:
-  stage: delivery
-  dependencies:
-    - coverage
-    - code_statistics
-  script:
-    - mv $(pwd)/coverage/ public/
-    - mv $(pwd)/analysis/report.txt public/
-  artifacts:
-    paths:
-      - public
-  only:
-    refs:
-      - master@GNOME/gjs
-    variables:
-      - $CRON_FREQUENCY == "Daily"
-
 sanitizer_clang:
   <<: *build
   stage: thorough_tests


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