From 7e5f684d709cfe6befd5975c9d0ecd5100d82df1 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Wed, 21 Apr 2021 05:21:08 +0000 Subject: ci: add framing regeneration to CI config Signed-off-by: GitHub --- travis.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'travis.sh') 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 -- cgit v1.2.1