Commit 66b474a8 authored by Claudio André's avatar Claudio André

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.
parent 59e3d0c5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment