1 # Repository cleanliness. Source tidiness, linting, and policy compliance.
11 - job: configure-clang-tidy
14 BUILD_DIR: build-clang-tidy
15 COMPILER_MAJOR_VERSION: 7
16 EXTRA_INSTALLS: clang-tidy-$COMPILER_MAJOR_VERSION
23 - .binary-build-template
27 - .clang-before-script-template
28 - .build-clang-template
36 KUBERNETES_CPU_LIMIT: 1
37 KUBERNETES_CPU_REQUEST: 1
38 KUBERNETES_MEMORY_LIMIT: 2Gi
39 COMPILER_MAJOR_VERSION: 7
40 EXTRA_INSTALLS: clang-format-$COMPILER_MAJOR_VERSION
45 - export CLANG_FORMAT=clang-format-$COMPILER_MAJOR_VERSION
46 - admin/clang-format.sh check --rev=HEAD^ --warnings=clang-format.log
47 - grep -iq "needs formatting" clang-format.log | tee formatting.txt || true
48 - if [ -s formatting.txt ] ; then echo "clang-format.sh found issues"; exit 1; fi
57 - .binary-build-template
61 - .clang-before-script-template
62 - .build-clang-template
70 KUBERNETES_CPU_LIMIT: 1
71 KUBERNETES_CPU_REQUEST: 1
72 KUBERNETES_MEMORY_LIMIT: 2Gi
77 - admin/copyright.sh check --rev=HEAD^ --warnings=copyright.log
78 - grep -iq "copyright year" copyright.log | tee years.log || true
79 - grep -iq "copyright header" copyright.log | tee headers.log || true
80 - if [[ -s years.log || -s headers.log ]] ; then
81 echo "Copyright information needs updating" ;
96 - .build-docs-binary-template
97 - .documentation-before-script-template
105 KUBERNETES_CPU_LIMIT: 1
106 KUBERNETES_CPU_REQUEST: 1
107 KUBERNETES_MEMORY_LIMIT: 2Gi
108 BUILD_DIR: build-docs
109 COMPILER_MAJOR_VERSION: 7
115 - cmake --build . --target check-source
116 - grep -qi "error" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee doxygenError.txt || true
117 - grep -qi "warning" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee -a doxygenError.txt || true
118 - if [ -s doxygenError.txt ] ; then echo "Found errors while running doxygen"; exit 1; fi
120 name: docs-artifacts-$CI_COMMIT_REF_SLUG
124 - $BUILD_DIR/docs/doxygen/doxygen-xml.log
125 - $BUILD_DIR/docs/doxygen/check-source.log