From: Peter Hutterer Date: Thu, 20 Feb 2020 06:33:05 +0000 (+1000) Subject: gitlab CI: add a scan-build target X-Git-Tag: libevdev-1.8.901~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45c223d3944c6abc9023594c0f00e562d6feea79;p=platform%2Fupstream%2Flibevdev.git gitlab CI: add a scan-build target 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 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3068ee2..59af2d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/.gitlab-ci/gitlab-ci.tmpl b/.gitlab-ci/gitlab-ci.tmpl index c45549f..f56a54f 100644 --- a/.gitlab-ci/gitlab-ci.tmpl +++ b/.gitlab-ci/gitlab-ci.tmpl @@ -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