summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml2
-rwxr-xr-xtravis.sh1
-rwxr-xr-xtravis/clang-format.sh2
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:
diff --git a/travis.sh b/travis.sh
index 31b3272..318b5e3 100755
--- a/travis.sh
+++ b/travis.sh
@@ -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 $@