summaryrefslogtreecommitdiff
path: root/travis.sh
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2017-12-04 23:52:48 -0800
committerAlan Antonuk <alan.antonuk@gmail.com>2017-12-05 00:19:29 -0800
commit9cb126c64759fd1294df5cfd4e16dcf938d40743 (patch)
tree22c7587785b2b599be2ece0df54ccc2201edccf4 /travis.sh
parentafaab64a3f4c6977d66811cb7235431a085de0b2 (diff)
downloadrabbitmq-c-9cb126c64759fd1294df5cfd4e16dcf938d40743.tar.gz
ci: add format check to travis-ci build matrix
Add a check that validates that running clang-format across the codebase does not produce diffs. This will (hopefully) reduce the amount of effort spent formatting stuff during PR reviews.
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/travis.sh b/travis.sh
index 3edd6d5..c21993b 100755
--- a/travis.sh
+++ b/travis.sh
@@ -8,6 +8,12 @@ build_cmake() {
ctest -V .
}
+build_format() {
+ ./travis/run-clang-format/run-clang-format.py \
+ --clang-format-executable="${PWD}/travis/clang-format.sh" \
+ --recursive examples librabbitmq tests tools
+}
+
build_coverage() {
mkdir $PWD/_build && cd $PWD/_build
cmake .. -DCMAKE_BUILD_TYPE=Coverage -DCMAKE_INSTALL_PREFIX=$PWD/../_install \