diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2017-12-04 23:52:48 -0800 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2017-12-05 00:19:29 -0800 |
commit | 9cb126c64759fd1294df5cfd4e16dcf938d40743 (patch) | |
tree | 22c7587785b2b599be2ece0df54ccc2201edccf4 /travis.sh | |
parent | afaab64a3f4c6977d66811cb7235431a085de0b2 (diff) | |
download | rabbitmq-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-x | travis.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 \ |