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
26 - .clang-before-script-template
27 - .build-clang-template
35 KUBERNETES_CPU_LIMIT: 1
36 KUBERNETES_CPU_REQUEST: 1
37 KUBERNETES_MEMORY_LIMIT: 2Gi
38 COMPILER_MAJOR_VERSION: 7
39 EXTRA_INSTALLS: clang-format-$COMPILER_MAJOR_VERSION
44 - export CLANG_FORMAT=clang-format-$COMPILER_MAJOR_VERSION
45 - admin/clang-format.sh check --rev=HEAD^ --warnings=clang-format.log
46 - grep -iq "needs formatting" clang-format.log | tee formatting.txt || true
47 - if [ -s formatting.txt ] ; then echo "clang-format.sh found issues"; exit 1; fi
56 - .binary-build-template
59 - .clang-before-script-template
60 - .build-clang-template
68 KUBERNETES_CPU_LIMIT: 1
69 KUBERNETES_CPU_REQUEST: 1
70 KUBERNETES_MEMORY_LIMIT: 2Gi
75 - admin/copyright.sh check --rev=HEAD^ --warnings=copyright.log
76 - grep -iq "copyright year" copyright.log | tee years.log || true
77 - grep -iq "copyright header" copyright.log | tee headers.log || true
78 - if [[ -s years.log || -s headers.log ]] ; then
79 echo "Copyright information needs updating" ;
93 - .build-docs-binary-template
94 - .documentation-before-script-template
102 KUBERNETES_CPU_LIMIT: 1
103 KUBERNETES_CPU_REQUEST: 1
104 KUBERNETES_MEMORY_LIMIT: 2Gi
105 BUILD_DIR: build-docs
106 COMPILER_MAJOR_VERSION: 7
112 - cmake --build . --target check-source
113 - grep -qi "error" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee doxygenError.txt || true
114 - grep -qi "warning" docs/doxygen/doxygen*log docs/doxygen/check-source.log | tee -a doxygenError.txt || true
115 - if [ -s doxygenError.txt ] ; then echo "Found errors while running doxygen"; exit 1; fi
117 name: docs-artifacts-$CI_COMMIT_REF_SLUG
121 - $BUILD_DIR/docs/doxygen/doxygen-xml.log
122 - $BUILD_DIR/docs/doxygen/check-source.log