Skip to content

Commit

Permalink
ci/clang-tidy: make CLANG_TIDY_TARGETS configurable (#37428)
Browse files Browse the repository at this point in the history
part of #28566 


Signed-off-by: Takeshi Yoneda <[email protected]>
Co-authored-by: phlax <[email protected]>
  • Loading branch information
mathetake and phlax authored Nov 29, 2024
1 parent d12a9c3 commit 2e80071
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,16 @@ case $CI_TARGET in
export FIX_YAML="${ENVOY_TEST_TMPDIR}/lint-fixes/clang-tidy-fixes.yaml"
export CLANG_TIDY_APPLY_FIXES=1
mkdir -p "${ENVOY_TEST_TMPDIR}/lint-fixes"
CLANG_TIDY_TARGETS=(
//contrib/...
//source/...
//test/...
@envoy_api//...)
if [[ -n "$CLANG_TIDY_TARGETS" ]]; then
read -ra CLANG_TIDY_TARGETS <<< "${CLANG_TIDY_TARGETS}"
else
CLANG_TIDY_TARGETS=(
//contrib/...
//source/...
//test/...
@envoy_api//...)
fi
echo "Running clang-tidy on ${CLANG_TIDY_TARGETS[*]}"
bazel build \
"${BAZEL_BUILD_OPTIONS[@]}" \
--config clang-tidy \
Expand Down

0 comments on commit 2e80071

Please sign in to comment.