diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2021-04-21 05:21:08 +0000 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2021-04-20 22:45:35 -0700 |
commit | 7e5f684d709cfe6befd5975c9d0ecd5100d82df1 (patch) | |
tree | 198932c03a9f1c64bd6b577d628362d52f45a524 /travis.sh | |
parent | f57cfd615971d0109e8a10e318214efdca3ecf7b (diff) | |
download | rabbitmq-c-7e5f684d709cfe6befd5975c9d0ecd5100d82df1.tar.gz |
ci: add framing regeneration to CI config
Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -8,6 +8,15 @@ build_cmake() { ctest -V . } +build_framing() { + sudo apt install -y clang-format + ./regenerate_framing.sh + mkdir $PWD/_build && cd $PWD/_build + cmake .. -GNinja -DBUILD_EXAMPLES=ON -DBUILD_TOOLS=ON -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Wall -Wextra -Wstrict-prototypes -Wno-unused-function -Wno-implicit-fallthrough -Werror" + cmake --build . --target install + ctest -V . +} + build_macos() { mkdir $PWD/_build && cd $PWD/_build cmake .. -GNinja -DBUILD_EXAMPLES=ON -DBUILD_TOOLS=ON -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Wall -Wextra -Wstrict-prototypes -Wno-unused-function -Werror" \ @@ -61,7 +70,7 @@ build_scan-build() { } if [ "$#" -ne 1 ]; then - echo "Usage: $0 {cmake|macos|format|coverage|asan|tsan|scan-build}" + echo "Usage: $0 {cmake|framing|macos|format|coverage|asan|tsan|scan-build}" exit 1 fi |