a7be3c961f ci: build clang-tidy plugin in pre-build step 372ce5bffe ci: add pre-build and post-build steps to Linux Acked-by: Kitware Robot <[email protected]> Merge-request: !7989
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+set -e
+quietly() {
+ readonly log="/tmp/quietly-$RANDOM.log"
+ if ! "$@" >"$log" 2>&1; then
+ ret=$?
+ cat "$log"
+ rm -f "$log"
+ exit $ret
+ fi
+}
+if test -r ".gitlab/ci/post_build_${CMAKE_CONFIGURATION}.sh"; then
+ source ".gitlab/ci/post_build_${CMAKE_CONFIGURATION}.sh"
+fi
+if test -r ".gitlab/ci/pre_build_${CMAKE_CONFIGURATION}.sh"; then
+ source ".gitlab/ci/pre_build_${CMAKE_CONFIGURATION}.sh"
@@ -1,7 +1,9 @@
cmake \
+ -G Ninja \
-S Utilities/ClangTidyModule \
-B Utilities/ClangTidyModule/build \
-DCMAKE_BUILD_TYPE=Release \
- -DRUN_TESTS=ON
+ -DRUN_TESTS=ON \
+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
cmake --build Utilities/ClangTidyModule/build
ctest --test-dir Utilities/ClangTidyModule/build --output-on-failure
@@ -487,8 +487,10 @@
- .gitlab/ci/sccache.sh
- sccache --start-server
- sccache --show-stats
+ - .gitlab/ci/pre_build.sh
- "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_configure.cmake"
- "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_build.cmake"
+ - .gitlab/ci/post_build.sh
interruptible: true