summaryrefslogtreecommitdiff
path: root/travis.sh
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2021-04-21 05:21:08 +0000
committerAlan Antonuk <alan.antonuk@gmail.com>2021-04-20 22:45:35 -0700
commit7e5f684d709cfe6befd5975c9d0ecd5100d82df1 (patch)
tree198932c03a9f1c64bd6b577d628362d52f45a524 /travis.sh
parentf57cfd615971d0109e8a10e318214efdca3ecf7b (diff)
downloadrabbitmq-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-xtravis.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/travis.sh b/travis.sh
index d1de146..c8b2b15 100755
--- a/travis.sh
+++ b/travis.sh
@@ -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