From 1feb3f6407dd34e9b59abb3cd499aa349525133d Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 11 Nov 2019 17:36:42 +0000 Subject: [PATCH] gitlab-ci: Do a build with clang and scan-build This might give us more/different compiler warnings. Signed-off-by: Simon McVittie <smcv@collabora.com> --- debian/gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml index 23dbc11cb..3b47f5689 100644 --- a/debian/gitlab-ci.yml +++ b/debian/gitlab-ci.yml @@ -50,6 +50,11 @@ build:devel: - | set -eux + apt-get -y --no-install-recommends install \ + clang \ + clang-tools \ + ${NULL+} + git clone \ -b${STEAM_RUNTIME_TOOLS_GIT_BRANCH} \ ${STEAM_RUNTIME_TOOLS_GIT_REPO} \ @@ -60,6 +65,16 @@ build:devel: ninja -C _build install meson test --verbose -C _build + export CC=clang + export CXX=clang++ + + rm -fr _build + meson --werror _build + ninja -C _build + ninja -C _build scan-build + ninja -C _build install + meson test --verbose -C _build + build:scout: stage: build image: "${SCOUT_DOCKER_REGISTRY}/${SCOUT_DOCKER_IMAGE}" -- GitLab