ci: Run coverage target by default

We're just a "ninja coverage" away from getting the full report,
it is not that much extra to the pipeline. Also, fix bugs that
accumulated since the manual task was added, e.g. let the full
built+tested tree available on the coverity stage.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1535
This commit is contained in:
Carlos Garnacho 2020-10-27 20:29:54 +01:00
parent 8fb30e6ec5
commit 232dcad64f

View File

@ -71,21 +71,17 @@ test-mutter:
NO_AT_BRIDGE: "1" NO_AT_BRIDGE: "1"
script: script:
- bash -x ./.gitlab-ci/run-tests.sh - bash -x ./.gitlab-ci/run-tests.sh
artifacts:
expire_in: 1 day
paths:
- build
only: only:
- merge_requests - merge_requests
- /^.*$/ - /^.*$/
artifacts: artifacts:
expire_in: 1 day
reports: reports:
junit: "build/${CI_JOB_NAME}-report.xml" junit: "build/${CI_JOB_NAME}-report.xml"
name: "mutter-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "mutter-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
paths: paths:
- "build/meson-logs" - build
- "build/${CI_JOB_NAME}-report.xml"
test-mutter-coverage: test-mutter-coverage:
stage: coverage stage: coverage
@ -97,12 +93,12 @@ test-mutter-coverage:
- cat build/meson-logs/coverage.txt - cat build/meson-logs/coverage.txt
artifacts: artifacts:
paths: paths:
- build/meson-logs - build/meson-logs/coveragereport
when: manual coverage: '/^TOTAL.*\s+(\d+\%)$/'
except: when: always
refs: only:
- tags - merge_requests
- master - /^.*$/
can-build-gnome-shell: can-build-gnome-shell:
stage: test stage: test