aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-27 15:10:13 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-27 15:10:13 +0100
commit83aa7c3d21e4df4613488892b0f917f3932034cb (patch)
tree4373547626af614e2cc25dbdeabd094a188ce57f /.build.yml
parent69eac3c0291049a76988d076b43c599230473731 (diff)
parenta2743f912739533299d1ceafb55f6ed9fd74d9b5 (diff)
downloadayatana-indicator-messages-83aa7c3d21e4df4613488892b0f917f3932034cb.tar.gz
ayatana-indicator-messages-83aa7c3d21e4df4613488892b0f917f3932034cb.tar.bz2
ayatana-indicator-messages-83aa7c3d21e4df4613488892b0f917f3932034cb.zip
Merge branch 'tari01-pr/cleanup-compile-flags'
Attributes GH PR #28: https://github.com/AyatanaIndicators/ayatana-indicator-messages/pull/28
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.build.yml b/.build.yml
index e53999b..834eac9 100644
--- a/.build.yml
+++ b/.build.yml
@@ -95,15 +95,17 @@ before_scripts:
build_scripts:
- if [ ${DISTRO_NAME} == "debian" ];then
- - export CFLAGS+=" -Wsign-compare -Wunused-parameter"
- cppcheck --enable=warning,style,performance,portability,information,missingInclude .
- fi
-
- if [ -e ./CMakeLists.txt ]; then
- - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ]; then
+ - if [ ${DISTRO_NAME} == "debian" ]; then
+ - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -DENABLE_TESTS=ON
+ - elif [ ${DISTRO_NAME} == "ubuntu" ]; then
+ # Ubuntu has an old GTest which throws warnings, so we cannot use -Werror here
- scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON
- else
- - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON
+ - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON
- fi
- else
- exit 1