Skip to content

Commit

Permalink
CI: add pipeline with ccws
Browse files Browse the repository at this point in the history
  • Loading branch information
asherikov committed Jul 21, 2024
1 parent 6e1501b commit 6eb95b0
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/head_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,28 @@ jobs:
- run: sudo make install-deps
- run: $APT clang-tools-15 clang-tidy-15
- run: make clangcheck SCANBUILD=scan-build-15 OPTIONS=noros_tidy TC=gcc

jammy_ccws:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
repository: asherikov/ccws
- uses: actions/checkout@v4
with:
ref: pkg_ws_2
path: src/ariles_ws
- run: cd src/ariles_ws; make update VERSION=${GITHUB_SHA}; rm -Rf ariles2_rosparam_ws demo
- run: make bp_install_build BUILD_PROFILE=static_checks
- run: make BUILD_PROFILE=static_checks
- run: make bp_install_build BUILD_PROFILE=scan_build
- run: make dep_install PKG=ariles2_core_ws
- run: make dep_install PKG=ariles2_graphviz_ws
- run: make dep_install PKG=ariles2_namevalue2_ws
- run: make dep_install PKG=ariles2_octave_ws
- run: make dep_install PKG=ariles2_pugixml_ws
- run: make dep_install PKG=ariles2_rapidjson_ws
- run: make dep_install PKG=ariles2_ros2param_ws
- run: make dep_install PKG=ariles2_yamlcpp_ws
- run: make _ws BUILD_PROFILE=scan_build

2 changes: 2 additions & 0 deletions include/ariles2/visitors/read.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ namespace ariles2

CPPUT_ASSERT(this->startMapEntry("data"), "Missing 'data' in a matrix entry.");

// cppcheck-suppress unreadVariable
const std::size_t vec_len = this->startVector();
CPPUT_ASSERT(cols * rows == vec_len, "Inconsistent matrix size.");
}
Expand All @@ -330,6 +331,7 @@ namespace ariles2
if (not param.flat_matrices_ and 0 != row_index)
{
this->startArrayElement();
// cppcheck-suppress unreadVariable
const std::size_t vec_len = this->startVector();
CPPUT_ASSERT(cols == vec_len, "Inconsistent matrix row length.");
}
Expand Down
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
find_package(Boost REQUIRED unit_test_framework timer random system)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
include_directories(SYSTEM "${CMAKE_CURRENT_LIST_DIR}/common/")
include_directories(SYSTEM "${PROJECT_BINARY_DIR}/tests/3rdparty")
configure_file("${CMAKE_CURRENT_LIST_DIR}/common/better_enum.h.hide" "${PROJECT_BINARY_DIR}/tests/3rdparty/better_enum.h" COPYONLY)


list(APPEND ARILES_TESTING_LIBRARIES "${Boost_LIBRARIES}")
Expand Down
1 change: 1 addition & 0 deletions tests/api_v2/fixtures/013_write_namevalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ namespace ariles_tests
BOOST_CHECK_EQUAL(writer.template get<ariles2::write::Visitor>().index_, name_value_pairs.size());
BOOST_CHECK_EQUAL(name_value_pairs_back.size(), name_value_pairs.size());

// cppcheck-suppress unsignedLessThanZero
for (std::size_t i = 0; i < name_value_pairs.size(); ++i)
{
BOOST_CHECK_EQUAL(name_value_pairs[i].first, "");
Expand Down
File renamed without changes.

0 comments on commit 6eb95b0

Please sign in to comment.