[tracker/wip/carlosg/ci-playground] ci: Add asan/clang static analysis tasks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/ci-playground] ci: Add asan/clang static analysis tasks
- Date: Sun, 16 May 2021 14:07:36 +0000 (UTC)
commit 39bf7baf429e2f1383a9120233d88c1db27ceaf3
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun May 16 16:05:33 2021 +0200
ci: Add asan/clang static analysis tasks
These might be useful to spot code errors, make them non-mandatory
and failable, just in case.
.gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 44dcd44be..49f28a4b3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -326,6 +326,40 @@ 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
+
+# Run tests with the address sanitizer. We need to turn off introspection,
+# since it is incompatible with asan
+asan-build:
+ extends:
+ - .fdo.distribution-image@fedora
+ - .tracker.fedora:rawhide@x86_64
+ stage: analysis
+ needs:
+ - build-fedora-rawhide-container@x86_64
+ tags: [ asan ]
+ script:
+ - CC=clang meson --buildtype=debugoptimized -Db_sanitize=address -Db_lundef=false
-Dintrospection=disabled _asan_build
+ - ninja -C _asan_build
+ - env LANG=C.UTF-8 LC_ALL=C.UTF-8 dbus-run-session ninja -C _asan_build test
+ artifacts:
+ paths:
+ - _build/meson-logs
+ allow_failure: true
+
pages:
extends:
- .fdo.distribution-image@fedora
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]