mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Merge branch 'ci-scan-build' into 'master'
ci: Add scan-build job in a new ‘analysis’ pipeline stage See merge request GNOME/glib!563
This commit is contained in:
commit
c11f5321dd
@ -1,6 +1,7 @@
|
||||
stages:
|
||||
- build
|
||||
- coverage
|
||||
- analysis
|
||||
- deploy
|
||||
|
||||
cache:
|
||||
@ -239,6 +240,29 @@ coverage:
|
||||
- bash -x ./.gitlab-ci/coverage-docker.sh
|
||||
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
|
||||
|
||||
scan-build:
|
||||
image: registry.gitlab.gnome.org/gnome/glib/fedora:v1
|
||||
stage: analysis
|
||||
except:
|
||||
- tags
|
||||
script:
|
||||
- meson ${MESON_COMMON_OPTIONS}
|
||||
--werror
|
||||
--default-library=both
|
||||
--prefix=$HOME/glib-installed
|
||||
--libdir=lib
|
||||
-Dsystemtap=true
|
||||
-Ddtrace=true
|
||||
-Dfam=true
|
||||
-Dinstalled_tests=true
|
||||
_build
|
||||
- ninja -C _build scan-build
|
||||
artifacts:
|
||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
paths:
|
||||
- "_build/meson-logs/scanbuild"
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
only:
|
||||
|
Loading…
Reference in New Issue
Block a user