From d4e64fb49a5dc5add80e88aab905d122999656fd Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 6 Aug 2020 18:40:02 +0200 Subject: .build.yml: Use the proper mate-desktop version when running cppcheck --- .build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.build.yml b/.build.yml index 3ba0a1ab..c7f3c8c6 100644 --- a/.build.yml +++ b/.build.yml @@ -159,6 +159,7 @@ variables: -enable-checker alpha.unix.cstring.OutOfBounds -enable-checker alpha.core.FixedAddr -enable-checker security.insecureAPI.strcpy"' + - MATE_DESKTOP_VERSION=1.25.0 before_scripts: - cd ${START_DIR} @@ -174,7 +175,6 @@ before_scripts: - make install - cd ${START_DIR} - - MATE_DESKTOP_VERSION=1.25.0 - if [ ! -f mate-desktop-${MATE_DESKTOP_VERSION}.tar.xz ];then - curl -Ls -o mate-desktop-${MATE_DESKTOP_VERSION}.tar.xz https://github.com/mate-desktop/mate-desktop/releases/download/v${MATE_DESKTOP_VERSION}/mate-desktop-${MATE_DESKTOP_VERSION}.tar.xz - fi @@ -198,7 +198,7 @@ before_scripts: build_scripts: - if [ ${DISTRO_NAME} == "debian" ];then - export CFLAGS+=" -Wsign-compare -Wunused-parameter" - - cppcheck --enable=warning,style,performance,portability,information,missingInclude -i'mate-desktop-1.23.2' . + - cppcheck --enable=warning,style,performance,portability,information,missingInclude -i"mate-desktop-${MATE_DESKTOP_VERSION}" . - fi - NOCONFIGURE=1 ./autogen.sh @@ -211,7 +211,7 @@ build_scripts: after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then - - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude -i'mate-desktop-1.23.2' . + - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude -i"mate-desktop-${MATE_DESKTOP_VERSION}" . - cppcheck-htmlreport --title=${REPO_NAME} --file=cppcheck.xml --report-dir=cppcheck-htmlreport - ./gen-index -l 20 -i https://github.com/${OWNER_NAME}/mate-icon-theme/raw/master/mate/16x16/categories/preferences-desktop.png - fi -- cgit v1.2.1