diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2020-12-23 07:40:34 +0000 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2020-12-24 09:41:41 -0800 |
commit | 2a687885fc7a418c9940240c0851a28aafb1967c (patch) | |
tree | 19572dbb3a74990c4acab03ba12700e665a7bf05 | |
parent | c9caeaa311f6d8afefc4ecbce44005509a956bed (diff) | |
download | rabbitmq-c-2a687885fc7a418c9940240c0851a28aafb1967c.tar.gz |
ci: add clang-format
-rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
-rwxr-xr-x | travis.sh | 1 | ||||
-rwxr-xr-x | travis/clang-format.sh | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8912924..90ec657 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: - compiler: clang config: tsan - compiler: clang + config: format + - compiler: clang config: scan-build steps: @@ -9,6 +9,7 @@ build_cmake() { } build_format() { + sudo apt-get install -y clang-format ./travis/run-clang-format/run-clang-format.py \ --clang-format-executable="${PWD}/travis/clang-format.sh" \ --recursive examples librabbitmq tests tools diff --git a/travis/clang-format.sh b/travis/clang-format.sh index 3b48c3b..80985e8 100755 --- a/travis/clang-format.sh +++ b/travis/clang-format.sh @@ -2,4 +2,4 @@ set -e -exec clang-format-3.9 -style=file $@ +exec clang-format -style=file $@ |