[network/ruqola] /: Disable autotest on CI (only linux autotest executated)
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit fa4f3bc658b13e5a9005a4022881f0c606136888 by Laurent Montel.
Committed on 16/07/2026 at 16:04.
Pushed by mlaurent into branch 'master'.
Disable autotest on CI (only linux autotest executated)
M +1 -0 .kde-ci.yml
M +8 -0 CMakeLists.txt
https://invent.kde.org/network/ruqola/-/commit/fa4f3bc658b13e5a9005a4022881f0c606136888
diff --git a/.kde-ci.yml b/.kde-ci.yml
index f17b38e8d3..8979e12374 100644
--- a/.kde-ci.yml
+++ b/.kde-ci.yml
@@ -47,3 +47,4 @@ Options:
use-ccache: True
cppcheck-arguments: '--enable=warning,performance,portability,style,unusedFunction --suppress-xml=cppcheck-suppressions.xml'
enable-lsan: True
+ cmake-options: "-DCI_DISABLE_AUTOTEST=TRUE"
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b5195a3854..c455254a25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -422,6 +422,14 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
string(APPEND CMAKE_CXX_FLAGS " -Wshadow")
endif()
+option(CI_DISABLE_AUTOTEST "Disable autotest on CI" FALSE)
+
+if(CI_DISABLE_AUTOTEST)
+ if(WIN32 OR APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "FreeBSD")
+ set(BUILD_TESTING FALSE)
+ endif()
+endif()
+
if(BUILD_TESTING)
find_package(Qt6 ${QT_REQUIRED_VERSION} REQUIRED COMPONENTS Test)
add_definitions(-DBUILD_TESTING)