aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-01-12 20:00:58 +0100
committerRobert Tari <robert@tari.in>2022-01-12 22:50:45 +0100
commita2743f912739533299d1ceafb55f6ed9fd74d9b5 (patch)
tree4373547626af614e2cc25dbdeabd094a188ce57f
parent552f4c5c4ac08b18fe014192952dbbd2d2d2d4a1 (diff)
downloadayatana-indicator-messages-a2743f912739533299d1ceafb55f6ed9fd74d9b5.tar.gz
ayatana-indicator-messages-a2743f912739533299d1ceafb55f6ed9fd74d9b5.tar.bz2
ayatana-indicator-messages-a2743f912739533299d1ceafb55f6ed9fd74d9b5.zip
.build.yml: Drop extra compilation flags and build with -Werror
-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