diff --git a/.gersemi/definitions.cmake b/.gersemi/definitions.cmake new file mode 100644 index 000000000..1e6de7884 --- /dev/null +++ b/.gersemi/definitions.cmake @@ -0,0 +1,19 @@ +# Custom CMake command definitions for gersemi formatting. +# These stubs teach gersemi the signatures of project-specific commands +# so it can format their invocations correctly. + +function(setup_target_for_coverage_gcovr) + set(options NONE) + set(oneValueArgs BASE_DIRECTORY NAME FORMAT) + set(multiValueArgs EXCLUDE EXECUTABLE EXECUTABLE_ARGS DEPENDENCIES) + cmake_parse_arguments( + THIS_FUNCTION_PREFIX + "${options}" + "${oneValueArgs}" + "${multiValueArgs}" + ${ARGN} + ) +endfunction() + +function(append_coverage_compiler_flags_to_target name mode) +endfunction() diff --git a/.gersemirc b/.gersemirc new file mode 100644 index 000000000..5abd52ffd --- /dev/null +++ b/.gersemirc @@ -0,0 +1 @@ +definitions: [.gersemi] diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c50b1ec4e..ce556ce12 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,7 +8,7 @@ on: jobs: run-hooks: - uses: XRPLF/actions/.github/workflows/pre-commit.yml@320be44621ca2a080f05aeb15817c44b84518108 + uses: XRPLF/actions/.github/workflows/pre-commit.yml@56de1bdf19639e009639a50b8d17c28ca954f267 with: runs_on: heavy container: '{ "image": "ghcr.io/xrplf/clio-pre-commit:14342e087ceb8b593027198bf9ef06a43833c696" }' diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index d1fa709d6..9966e37b3 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -254,21 +254,15 @@ if(coverage) set(GCOVR_ADDITIONAL_ARGS --exclude-throw-branches -s) setup_target_for_coverage_gcovr( - NAME - coverage_report - FORMAT - ${CODE_COVERAGE_FORMAT} - EXECUTABLE - clio_tests - EXECUTABLE_ARGS - --gtest_brief=1 - ${TESTS_ADDITIONAL_ARGS} + NAME coverage_report + FORMAT ${CODE_COVERAGE_FORMAT} + EXECUTABLE clio_tests + EXECUTABLE_ARGS --gtest_brief=1 ${TESTS_ADDITIONAL_ARGS} EXCLUDE - "tests" - "src/data/cassandra" - "src/data/CassandraBackend.hpp" - "src/data/BackendFactory.*" - DEPENDENCIES - clio_tests + "tests" + "src/data/cassandra" + "src/data/CassandraBackend.hpp" + "src/data/BackendFactory.*" + DEPENDENCIES clio_tests ) endif()