Skip to content

Commit

Permalink
Add CI workflow and ament_lint tests (#148)
Browse files Browse the repository at this point in the history
* Add CI workflow

* Add ament_lint tests

* Disable uncrustify for now

* Use package format 3 and add xml schema

* Fix cmake lint error
  • Loading branch information
bjsowa authored Sep 30, 2024
1 parent 3a5432b commit 576dd6d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
workflow_dispatch:
push:
branches:
- ros2
pull_request:
branches:
- ros2

jobs:
industrial_ci:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [humble, iron, jazzy, rolling]
ROS_REPO: [testing, main]
env:
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
ROS_REPO: ${{ matrix.ROS_REPO }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Source tests
uses: "ros-industrial/industrial_ci@master"
13 changes: 11 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,17 @@ install(TARGETS ${PROJECT_NAME}
)

install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION include/${PROJECT_NAME}
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
DESTINATION include/${PROJECT_NAME}
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
)

###########
## Tests ##
###########

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_package()
11 changes: 9 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0"?>
<package format="2">
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>web_video_server</name>
<version>1.0.0</version>
<description>HTTP Streaming of ROS Image Topics in Multiple Formats</description>

<maintainer email="blazej@fictionlab.pl">Błażej Sowa</maintainer>
<author email="mwills@wpi.edu">Mitchell Wills</author>

<license>BSD</license>

<url type="website">http://ros.org/wiki/web_video_server</url>
<url type="bugtracker">https://github.com/RobotWebTools/web_video_server/issues</url>
<url type="repository">https://github.com/RobotWebTools/web_video_server</url>

<author email="mwills@wpi.edu">Mitchell Wills</author>

<buildtool_depend>ament_cmake_ros</buildtool_depend>

<build_depend>rclcpp</build_depend>
Expand All @@ -29,6 +31,11 @@
<exec_depend>ffmpeg</exec_depend>
<exec_depend>sensor_msgs</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_cmake_lint_cmake</test_depend>
<test_depend>ament_cmake_xmllint</test_depend>
<!-- <test_depend>ament_cmake_uncrustify</test_depend> -->

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down

0 comments on commit 576dd6d

Please sign in to comment.