]> granicus.if.org Git - graphviz/commitdiff
fail MinGW CMake CI jobs on any compiler warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Nov 2021 16:05:22 +0000 (08:05 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 24 Nov 2021 15:47:40 +0000 (07:47 -0800)
As of the prior commit, these builds are warning free.

.gitlab-ci.yml

index 7b67af9a4b86a3f28109360f4649103ef31fba7f..62def282c69123bbc09cc1643b6d967058ea566c 100644 (file)
@@ -801,6 +801,9 @@ windows-mingw32-cmake-build:
         - choco config set cacheLocation choco-cache
         - choco install --yes --no-progress msys2
         - $Env:build_system = "cmake"
+        # fail on any compiler warnings
+        - $Env:CFLAGS = "-Werror"
+        - $Env:CXXFLAGS = "-Werror"
         - C:\tools\msys64\usr\bin\env MSYSTEM=MINGW32 C:\tools\msys64\usr\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/mingw-build.sh'
     artifacts:
         when: always
@@ -824,6 +827,9 @@ windows-mingw64-cmake-build:
         - choco config set cacheLocation choco-cache
         - choco install --yes --no-progress msys2
         - $Env:build_system = "cmake"
+        # fail on any compiler warnings
+        - $Env:CFLAGS = "-Werror"
+        - $Env:CXXFLAGS = "-Werror"
         - C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 C:\tools\msys64\usr\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/mingw-build.sh'
     artifacts:
         when: always