Skip to content

Commit

Permalink
fixup! format,ci: update clang-format to clang16
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Jul 28, 2023
1 parent 22caa23 commit b1bb13f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/ci/scripts/run-clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ then
echo "clang-format:"
echo " Code format checks failed."
echo " Please run clang-format v16 your changes before committing:"
echo " You can use our CI image for this with:"
echo " docker run -itt --mount type=bind,source=$(pwd),target=/root/adios2 ghcr.io/ornladios/adios2:ci-formatting"
echo " cd /root/adios; scripts/ci/scripts/run-clang-format.sh"
echo " You can use our CI image for this with: scripts/developer/run-clang-format.sh"
echo " The following changes are suggested:"
echo "${DIFF}"
echo "$(git diff --stat)"
Expand Down
7 changes: 7 additions & 0 deletions scripts/developer/run-clang-format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

exec sudo docker run -itt --mount type=bind,source="$(pwd)",target=/root/adios2 \
ghcr.io/ornladios/adios2:ci-formatting sh -c \
"git config --global --add safe.directory /root/adios2 &&
cd /root/adios2 &&
./scripts/ci/scripts/run-clang-format.sh"

0 comments on commit b1bb13f

Please sign in to comment.