1 # Repository cleanliness. Source tidiness, linting, and policy compliance.
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
26 - job: configure-clang-tidy
29 BUILD_DIR: build-clang-tidy
30 EXTRA_INSTALLS: clang-tidy-$COMPILER_MAJOR_VERSION
37 - .binary-build-template
47 KUBERNETES_CPU_LIMIT: 1
48 KUBERNETES_CPU_REQUEST: 1
49 KUBERNETES_MEMORY_LIMIT: 2Gi
50 EXTRA_INSTALLS: clang-format-$COMPILER_MAJOR_VERSION
55 - export CLANG_FORMAT=clang-format-$COMPILER_MAJOR_VERSION
56 - admin/clang-format.sh check --rev=HEAD^ --warnings=clang-format.log
57 - grep -iq "needs formatting" clang-format.log | tee formatting.txt || true
58 - if [ -s formatting.txt ] ; then echo "clang-format.sh found issues"; exit 1; fi
67 - .binary-build-template
77 KUBERNETES_CPU_LIMIT: 1
78 KUBERNETES_CPU_REQUEST: 1
79 KUBERNETES_MEMORY_LIMIT: 2Gi
84 - admin/copyright.sh check --rev=HEAD^ --warnings=copyright.log
85 - grep -iq "copyright year" copyright.log | tee years.log || true
86 - grep -iq "copyright header" copyright.log | tee headers.log || true
87 - if [[ -s years.log || -s headers.log ]] ; then
88 echo "Copyright information needs updating" ;
101 - .build-docs-binary-template
102 - .documentation-before-script-template
111 KUBERNETES_CPU_LIMIT: 1
112 KUBERNETES_CPU_REQUEST: 1
113 KUBERNETES_MEMORY_LIMIT: 2Gi
114 BUILD_DIR: build-docs
120 - cmake --build . --target check-source
121 - grep -qi "error" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee doxygenError.txt || true
122 - grep -qi "warning" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee -a doxygenError.txt || true
123 - if [ -s doxygenError.txt ] ; then echo "Found errors while running doxygen"; exit 1; fi
125 name: docs-artifacts-$CI_COMMIT_REF_SLUG
129 - $BUILD_DIR/docs/doxygen/doxygen-xml.log
130 - $BUILD_DIR/docs/doxygen/check-source.log
134 - .build-docs-webpage
142 - external_pull_requests
147 KUBERNETES_CPU_LIMIT: 1
148 KUBERNETES_CPU_REQUEST: 1
149 KUBERNETES_MEMORY_LIMIT: 2Gi
150 BUILD_DIR: build-docs-gmxapi
153 - linkchecker docs/html/index.html -f ../docs/linkcheckerrc -Fxml --ignore-url html-full
154 --ignore-url html-user --ignore-url html-lib --ignore-url .tar.gz --ignore-url _sources
158 junit: $BUILD_DIR/linkchecker-out.xml