]> granicus.if.org Git - graphviz/commitdiff
CI: fail CMake builds on any developer warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Nov 2022 19:06:29 +0000 (12:06 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Nov 2022 04:52:51 +0000 (20:52 -0800)
Hopefully this will prevent problems like those fixed in the prior commits being
reintroduced.

Gitlab: #2291

ci/build.sh
ci/windows_build.py

index 2ba1d724e4d05891d43901ea0cf85b204be45fcd..1d1c2a60e1ad766c8d4cb5104a4eba21e2b5f96d 100755 (executable)
@@ -37,7 +37,8 @@ if [ "${build_system}" = "cmake" ]; then
     cmake --version
     mkdir build
     pushd build
-    cmake --log-level=VERBOSE ${CMAKE_OPTIONS:-} ..
+    cmake --log-level=VERBOSE --warn-uninitialized -Werror=dev \
+      ${CMAKE_OPTIONS:-} ..
     cmake --build .
     cpack
     popd
index 0ae1adb1101ba6fb9e8d7781ca6144f1b710df2f..e6c154b920ff6e3d68fefe3deb03b36e9c6dd960 100644 (file)
@@ -37,7 +37,8 @@ def main(args: List[str]) -> int: #pylint: disable=C0116
     os.makedirs(build)
     run(["cmake", "--version"], build)
     run(["cmake", "--log-level=VERBOSE", "-G", "Visual Studio 16 2019", "-A",
-         options.platform, "-D", "with_cxx_api=ON", ".."],
+         options.platform, "-D", "with_cxx_api=ON", "--warn-uninitialized",
+         "-Werror=dev", ".."],
         build)
     run(["cmake", "--build", ".", "--config", options.configuration], build)
     run(["cpack", "-C", options.configuration], build)