Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ci/jenkins/bin/clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ autoreconf -if && ./configure
${ATS_MAKE} clang-format
[ "0" != "$?" ] && exit 1

${ATS_MAKE} autopep8
[ "0" != "$?" ] && exit 1
# Only enforce autopep8 on branches where the pre-commit hook was updated to
# check it. Otherwise, none of the PRs for older branches will pass this check.
if grep -q autopep8 tools/git/pre-commit; then
${ATS_MAKE} autopep8
[ "0" != "$?" ] && exit 1
fi

git diff --exit-code
[ "0" != "$?" ] && exit 1
Expand Down