Remove/replace many mentions of Jenkins
[alexxy/gromacs.git] / docs / doxygen / CMakeLists.txt
index 1f47a57731b267f0e968f40e0c10b700aa87c668..6de85e4f6633f8dcf3f15c812003138310742125 100644 (file)
@@ -1,7 +1,8 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2012,2013,2014,2015,2016,2017,2018,2019, by the GROMACS development team, led by
+# Copyright (c) 2012,2013,2014,2015,2016 by the GROMACS development team.
+# Copyright (c) 2017,2018,2019,2020,2021, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -57,7 +58,7 @@ gmx_dependent_option(
 mark_as_advanced(GMX_COMPACT_DOXYGEN)
 
 set(USE_PYTHON_SCRIPTS OFF)
-if (PYTHONINTERP_FOUND AND NOT PYTHON_VERSION_STRING VERSION_LESS "2.6" AND NOT ${PYTHON_VERSION_MAJOR} EQUAL 3)
+if (Python3_Interpreter_FOUND)
     set(USE_PYTHON_SCRIPTS ON)
 endif()
 
@@ -118,7 +119,7 @@ if (DOXYGEN_FOUND)
     else()
         # If there is no git, we just update the stamp every time, and the
         # builds are triggered every time.  This should be rare enough, but
-        # this case still needs to be supported for the Jenkins job that builds
+        # this case still needs to be supported for the CI job that builds
         # the documentation for a release from the release tarball.
         gmx_add_custom_output_target(doxygen-source-timestamp
             RUN_ALWAYS OUTPUT STAMP
@@ -164,16 +165,14 @@ if (DOXYGEN_FOUND)
         # dependency on doxygen-xml takes care of that transitively.
         gmx_add_custom_output_target(dep-graphs-dot ADD_FAST_TARGET
             OUTPUT STAMP
-            COMMAND ${PYTHON_EXECUTABLE}
+            COMMAND ${Python3_EXECUTABLE}
                 ${CMAKE_CURRENT_SOURCE_DIR}/graphbuilder.py
                 -S ${CMAKE_SOURCE_DIR} -B ${CMAKE_BINARY_DIR}
-                --ignore-cycles ${CMAKE_CURRENT_SOURCE_DIR}/cycle-suppressions.txt
                 -o ${DEPGRAPH_DIR}
             DEPENDS doxygen-xml ${INSTALLED_HEADER_FILE}
                 ${CMAKE_CURRENT_SOURCE_DIR}/doxygenxml.py
                 ${CMAKE_CURRENT_SOURCE_DIR}/gmxtree.py
                 ${CMAKE_CURRENT_SOURCE_DIR}/graphbuilder.py
-                ${CMAKE_CURRENT_SOURCE_DIR}/cycle-suppressions.txt
             COMMENT "Generating include dependency graphs for dot"
             USES_TERMINAL)
 
@@ -208,14 +207,13 @@ if (DOXYGEN_FOUND)
         # TODO: Consider whether this is the best location for this code,
         # since not all of it is Doxygen-specific (but nearly all of it
         # relies on the Doxygen XML documentation).
-        # The output .log file currently needs to be here, since Jenkins
+        # The output .log file currently needs to be here, since CI
         # expects that.
         set(check_source_command
-            ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-source.py
+            ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-source.py
             -S ${CMAKE_SOURCE_DIR} -B ${CMAKE_BINARY_DIR}
             -l ${CMAKE_CURRENT_BINARY_DIR}/check-source.log
-            --ignore ${CMAKE_CURRENT_SOURCE_DIR}/suppressions.txt
-            --ignore-cycles ${CMAKE_CURRENT_SOURCE_DIR}/cycle-suppressions.txt)
+            --ignore ${CMAKE_CURRENT_SOURCE_DIR}/suppressions.txt)
         add_custom_target(check-source      COMMAND ${check_source_command}
             COMMENT "Checking source code for various issues" VERBATIM USES_TERMINAL)
         add_custom_target(check-source-fast COMMAND ${check_source_command}