1 # Repository cleanliness. Source tidiness, linting, and policy compliance.
11 BUILD_DIR: build-clang-tidy
12 COMPILER_MAJOR_VERSION: 7
13 CMAKE_EXTRA_OPTIONS: -DCLANG_TIDY=clang-tidy-$COMPILER_MAJOR_VERSION -DGMX_CLANG_TIDY=ON -DGMX_COMPILER_WARNINGS=ON
14 EXTRA_INSTALLS: clang-tidy-$COMPILER_MAJOR_VERSION
27 - job: configure-clang-tidy
30 BUILD_DIR: build-clang-tidy
31 COMPILER_MAJOR_VERSION: 7
32 EXTRA_INSTALLS: clang-tidy-$COMPILER_MAJOR_VERSION
39 - .binary-build-template
42 - .clang-before-script-template
43 - .build-clang-template
51 KUBERNETES_CPU_LIMIT: 1
52 KUBERNETES_CPU_REQUEST: 1
53 KUBERNETES_MEMORY_LIMIT: 2Gi
54 COMPILER_MAJOR_VERSION: 7
55 EXTRA_INSTALLS: clang-format-$COMPILER_MAJOR_VERSION
60 - export CLANG_FORMAT=clang-format-$COMPILER_MAJOR_VERSION
61 - admin/clang-format.sh check --rev=HEAD^ --warnings=clang-format.log
62 - grep -iq "needs formatting" clang-format.log | tee formatting.txt || true
63 - if [ -s formatting.txt ] ; then echo "clang-format.sh found issues"; exit 1; fi
72 - .binary-build-template
75 - .clang-before-script-template
76 - .build-clang-template
84 KUBERNETES_CPU_LIMIT: 1
85 KUBERNETES_CPU_REQUEST: 1
86 KUBERNETES_MEMORY_LIMIT: 2Gi
91 - admin/copyright.sh check --rev=HEAD^ --warnings=copyright.log
92 - grep -iq "copyright year" copyright.log | tee years.log || true
93 - grep -iq "copyright header" copyright.log | tee headers.log || true
94 - if [[ -s years.log || -s headers.log ]] ; then
95 echo "Copyright information needs updating" ;
109 - .build-docs-binary-template
110 - .documentation-before-script-template
118 KUBERNETES_CPU_LIMIT: 1
119 KUBERNETES_CPU_REQUEST: 1
120 KUBERNETES_MEMORY_LIMIT: 2Gi
121 BUILD_DIR: build-docs
122 COMPILER_MAJOR_VERSION: 7
128 - cmake --build . --target check-source
129 - grep -qi "error" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee doxygenError.txt || true
130 - grep -qi "warning" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee -a doxygenError.txt || true
131 - if [ -s doxygenError.txt ] ; then echo "Found errors while running doxygen"; exit 1; fi
133 name: docs-artifacts-$CI_COMMIT_REF_SLUG
137 - $BUILD_DIR/docs/doxygen/doxygen-xml.log
138 - $BUILD_DIR/docs/doxygen/check-source.log
142 - .build-docs-webpage
150 - external_pull_requests
155 KUBERNETES_CPU_LIMIT: 1
156 KUBERNETES_CPU_REQUEST: 1
157 KUBERNETES_MEMORY_LIMIT: 2Gi
158 BUILD_DIR: build-docs-gmxapi
161 - linkchecker docs/html/index.html -f ../docs/linkcheckerrc -Fxml --ignore-url html-full
162 --ignore-url html-user --ignore-url html-lib --ignore-url .tar.gz --ignore-url _sources
166 junit: $BUILD_DIR/linkchecker-out.xml