summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-05-16 16:05:33 +0200
committerCarlos Garnacho <carlosg@gnome.org>2021-05-17 00:02:15 +0200
commitb424297636e9a2667b45c58cf32e69c233b85b42 (patch)
tree4e900c9cdb142c6fbbecb48e8783ae89337b683b /.gitlab-ci.yml
parenta1232c328b53f1c3e9e61a02c9cf1c284dfea086 (diff)
downloadtracker-b424297636e9a2667b45c58cf32e69c233b85b42.tar.gz
ci: Add clang static analysis task
This might be useful to spot code errors.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6df352870..2cb98c926 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -59,9 +59,9 @@ check-merge-request:
.tracker.fedora@common:
variables:
- BASE_TAG: '2021-05-15.8'
+ BASE_TAG: '2021-05-15.9'
FDO_UPSTREAM_REPO: GNOME/tracker
- FDO_DISTRIBUTION_PACKAGES: 'clang gcovr git libasan libubsan python3-gobject python3-pip umockdev-devel xmlto'
+ FDO_DISTRIBUTION_PACKAGES: 'clang clang-analyzer gcovr git libasan libubsan python3-gobject python3-pip umockdev-devel xmlto'
FDO_DISTRIBUTION_EXEC: |
dnf install -y 'dnf-command(builddep)' &&
dnf builddep -y tracker tracker-miners --setopt=install_weak_deps=False &&
@@ -342,6 +342,21 @@ coverity:
changes:
- po/*.po
+static-scan:
+ extends:
+ - .fdo.distribution-image@fedora
+ - .tracker.fedora:rawhide@x86_64
+ stage: analysis
+ needs:
+ - build-fedora-rawhide-container@x86_64
+ script:
+ - meson --buildtype=debug _scan_build
+ - ninja -C _scan_build scan-build
+ artifacts:
+ paths:
+ - _scan_build/meson-logs
+ allow_failure: true
+
pages:
extends:
- .fdo.distribution-image@fedora