From b0f413037a1121bc477ac8ea216f40c1d6e47e45 Mon Sep 17 00:00:00 2001 From: Carlos Gomes Martinho Date: Tue, 31 Mar 2020 21:38:51 +0200 Subject: [PATCH] test: update generate-xml script --- .github/workflows/ccpp.yml | 9 ++++++++- CMakeLists.txt | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 9b9b4d7..f7922e1 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -9,7 +9,13 @@ jobs: steps: - uses: actions/checkout@v2 - name: build examples and tests - run: rm -rf build || true && mkdir build && cd build && cmake .. -DLIBMBUS_BUILD_EXAMPLES=ON -DLIBMBUS_BUILD_TESTS=ON && cmake --build . -j + run: rm -rf build || true && mkdir build && cd build && cmake .. -DLIBMBUS_BUILD_EXAMPLES=ON -DLIBMBUS_BUILD_TESTS=ON -DLIBMBUS_ENABLE_COVERAGE=ON && cmake --build . -j && cd .. + + - name: generate test frames + run: ./test/generate-xml.sh test/test-frames build/bin/mbus_parse_hex + + - name: install and run gcovr + run: sudo pip install gcovr && gcovr build/. debian: runs-on: ubuntu-latest @@ -21,6 +27,7 @@ jobs: doc: runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 - name: build doxygen documentation diff --git a/CMakeLists.txt b/CMakeLists.txt index d89d82a..29d0fba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ endif() option(LIBMBUS_BUILD_EXAMPLES "build examples" OFF) option(LIBMBUS_BUILD_TESTS "build tests" OFF) -option(LIBMBUS_ENABLE_COVERAGE "build with coverage support" ON) +option(LIBMBUS_ENABLE_COVERAGE "build with coverage support" OFF) option(LIBMBUS_RUN_CLANG_TIDY "use Clang-Tidy for static analysis" OFF) option(LIBMBUS_PACKAGE_DEB "build debian package" OFF) option(LIBMBUS_PACKAGE_RPM "build rpm package" OFF)