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:
Sebastian Dröge 2019-06-11 11:59:46 +00:00
commit c11f5321dd

View File

@ -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: