1 # Repository cleanliness. Source tidiness, linting, and policy compliance.
5 - .gromacs:base:configure
11 BUILD_DIR: build-clang-tidy
12 CMAKE_EXTRA_OPTIONS: -DCLANG_TIDY=clang-tidy-$COMPILER_MAJOR_VERSION -DGMX_CLANG_TIDY=ON -DGMX_COMPILER_WARNINGS=ON
13 EXTRA_INSTALLS: clang-tidy-$COMPILER_MAJOR_VERSION
28 - job: configure-clang-tidy
31 BUILD_DIR: build-clang-tidy
32 EXTRA_INSTALLS: clang-tidy-$COMPILER_MAJOR_VERSION
49 KUBERNETES_CPU_LIMIT: 1
50 KUBERNETES_CPU_REQUEST: 1
51 KUBERNETES_MEMORY_LIMIT: 2Gi
52 EXTRA_INSTALLS: clang-format-$COMPILER_MAJOR_VERSION
57 - export CLANG_FORMAT=clang-format-$COMPILER_MAJOR_VERSION
58 - admin/clang-format.sh check --rev=HEAD^ --warnings=clang-format.log
59 - grep -iq "needs formatting" clang-format.log | tee formatting.txt || true
60 - if [ -s formatting.txt ] ; then echo "clang-format.sh found issues"; exit 1; fi
79 KUBERNETES_CPU_LIMIT: 1
80 KUBERNETES_CPU_REQUEST: 1
81 KUBERNETES_MEMORY_LIMIT: 2Gi
86 - admin/copyright.sh check --rev=HEAD^ --warnings=copyright.log
87 - grep -iq "copyright year" copyright.log | tee years.log || true
88 - grep -iq "copyright header" copyright.log | tee headers.log || true
89 - if [[ -s years.log || -s headers.log ]] ; then
90 echo "Copyright information needs updating" ;
103 - .build-docs-binary-template
104 - .documentation-before-script-template
113 KUBERNETES_CPU_LIMIT: 1
114 KUBERNETES_CPU_REQUEST: 1
115 KUBERNETES_MEMORY_LIMIT: 2Gi
116 BUILD_DIR: build-docs
122 - cmake --build . --target check-source
123 - grep -qi "error" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee doxygenError.txt || true
124 - grep -qi "warning" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee -a doxygenError.txt || true
125 - if [ -s doxygenError.txt ] ; then echo "Found errors while running doxygen"; exit 1; fi
127 name: docs-artifacts-$CI_COMMIT_REF_SLUG
131 - $BUILD_DIR/docs/doxygen/doxygen-xml.log
132 - $BUILD_DIR/docs/doxygen/check-source.log
136 - .build-docs-webpage
149 KUBERNETES_CPU_LIMIT: 1
150 KUBERNETES_CPU_REQUEST: 1
151 KUBERNETES_MEMORY_LIMIT: 2Gi
152 BUILD_DIR: build-docs-gmxapi
155 - linkchecker docs/html/index.html -f ../docs/linkcheckerrc -Fxml --ignore-url html-full
156 --ignore-url html-user --ignore-url html-lib --ignore-url .tar.gz --ignore-url _sources
160 junit: $BUILD_DIR/linkchecker-out.xml