gitlab CI: add a scan-build target
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 20 Feb 2020 06:33:05 +0000 (16:33 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 20 Feb 2020 07:17:24 +0000 (17:17 +1000)
To avoid dnf updates and outdated packages (and the resulting delay from a dnf
update) we just install the clang-analyzer package into the default Fedora
image. It won't mess with the build expectations too much.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml
.gitlab-ci/gitlab-ci.tmpl

index 3068ee2cfd45329f04774ce287dd83f50bef77b7..59af2d4defbb512c98ee5c3244adab0fbb5ae9a1 100644 (file)
@@ -46,7 +46,7 @@ variables:
   # Run dnf install/apt-get install/.. with the list of packages for your       #
   # distribution                                                                #
   ###############################################################################
-  FEDORA_RPMS: 'git gcc gcc-c++ meson automake autoconf libtool make pkgconfig  python3 check-devel valgrind binutils doxygen xz'
+  FEDORA_RPMS: 'git gcc gcc-c++ meson automake autoconf libtool make pkgconfig  python3 check-devel valgrind binutils doxygen xz clang-analyzer'
   CENTOS_RPMS: 'git gcc gcc-c++       automake autoconf libtool make pkgconfig  python3 check-devel valgrind binutils xz'
   UBUNTU_DEBS: 'git gcc g++     meson automake autoconf libtool make pkg-config python3 check       valgrind binutils doxygen xz-utils'
   DEBIAN_DEBS: $UBUNTU_DEBS
@@ -57,7 +57,7 @@ variables:
   # changing these will force rebuilding the associated image
   # Note: these tags have no meaning and are not tied to a particular
   # libevdev version
-  FEDORA_TAG: '2020-02-17.1'
+  FEDORA_TAG: '2020-02-20.0'
   CENTOS_TAG: '2020-02-17.1'
   DEBIAN_TAG: '2020-02-17.1'
   UBUNTU_TAG: '2020-02-17.1'
@@ -773,6 +773,11 @@ enable-gcov:meson:
   variables:
     MESON_ARGS: '-Dcoverity=true'
 
+scan-build:meson:
+  extends: .fedora-custom-build@meson-template
+  variables:
+    NINJA_ARGS: 'scan-build'
+
 soname:
   stage: build
   image: $FEDORA_CONTAINER_IMAGE
index c45549f065295239e9ca0494dcbdffcdc13d7f55..f56a54fc70bef8e51e09bb3df2febc670ddd0743 100644 (file)
@@ -46,7 +46,7 @@ variables:
   # Run dnf install/apt-get install/.. with the list of packages for your       #
   # distribution                                                                #
   ###############################################################################
-  FEDORA_RPMS: 'git gcc gcc-c++ meson automake autoconf libtool make pkgconfig  python3 check-devel valgrind binutils doxygen xz'
+  FEDORA_RPMS: 'git gcc gcc-c++ meson automake autoconf libtool make pkgconfig  python3 check-devel valgrind binutils doxygen xz clang-analyzer'
   CENTOS_RPMS: 'git gcc gcc-c++       automake autoconf libtool make pkgconfig  python3 check-devel valgrind binutils xz'
   UBUNTU_DEBS: 'git gcc g++     meson automake autoconf libtool make pkg-config python3 check       valgrind binutils doxygen xz-utils'
   DEBIAN_DEBS: $UBUNTU_DEBS
@@ -57,7 +57,7 @@ variables:
   # changing these will force rebuilding the associated image
   # Note: these tags have no meaning and are not tied to a particular
   # libevdev version
-  FEDORA_TAG: '2020-02-17.1'
+  FEDORA_TAG: '2020-02-20.0'
   CENTOS_TAG: '2020-02-17.1'
   DEBIAN_TAG: '2020-02-17.1'
   UBUNTU_TAG: '2020-02-17.1'
@@ -445,6 +445,11 @@ enable-gcov:meson:
   variables:
     MESON_ARGS: '-Dcoverity=true'
 
+scan-build:meson:
+  extends: .fedora-custom-build@meson-template
+  variables:
+    NINJA_ARGS: 'scan-build'
+
 soname:
   stage: build
   image: $FEDORA_CONTAINER_IMAGE