Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fixes:
- "ros_ws/src/sros2/::"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rewrites the path of the files in the report so that we can browse them directly on the codecov.io interface and see which lines/conditionals are covered and which are not

61 changes: 61 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: SROS2 CI
on:
pull_request:
push:
schedule:
# Run daily
- cron: '0 20 * * *'

jobs:
test_latest:
runs-on: ubuntu-latest
container: osrf/ros2:devel
Comment thread
kyrofa marked this conversation as resolved.
steps:
- run: |
apt-get -qq update
apt-get -qq upgrade -y
apt-get -qq install -y curl libasio-dev libtinyxml2-dev
# TODO(mikaelarguedas) switch back to ros-tooling/action-ros-ci once
# https://github.com/ros-tooling/action-ros-ci/pull/109 is released
- uses: mikaelarguedas/action-ros-ci@sros2-version
Comment thread
mikaelarguedas marked this conversation as resolved.
with:
package-name: |
sros2
sros2_cmake
# skipping end-to-end tests for now https://github.com/eProsima/Fast-RTPS/issues/1087
# test_security
# extra-cmake-args: '-DSECURITY=ON --no-warn-unused-cli'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.6
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master')
with:
file: ros_ws/build/sros2/coverage.xml
flags: unittests
name: sros2-coverage
fail_ci_if_error: true
yml: .codecov.yml
Comment thread
kyrofa marked this conversation as resolved.
- name: Upload Logs
uses: actions/upload-artifact@v1
if: failure()
with:
name: colcon-logs
path: ros_ws/log
test_nightly:
runs-on: ubuntu-latest
container: osrf/ros2:nightly
steps:
- uses: actions/checkout@v1
- run: |
apt-get -qq update
apt-get -qq upgrade -y
rosdep update
Comment thread
kyrofa marked this conversation as resolved.
rosdep install -y --from-paths . --ignore-src --rosdistro $ROS_DISTRO
- run: . /opt/ros/$ROS_DISTRO/setup.sh && colcon build
- run: . /opt/ros/$ROS_DISTRO/setup.sh && colcon test --executor sequential --event-handlers console_direct+
- run: colcon test-result
- name: Upload Logs
uses: actions/upload-artifact@v1
if: failure()
with:
name: colcon-logs
path: ros_ws/log
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Context

![SROS2 CI](https://github.com/ros2/sros2/workflows/SROS2%20CI/badge.svg)
[![codecov](https://codecov.io/gh/ros2/sros2/branch/master/graph/badge.svg)](https://codecov.io/gh/ros2/sros2)
Comment thread
artivis marked this conversation as resolved.

This package provides the tools and instructions to use ROS2 on top of DDS-Security.
The security feature is tested across platforms (Linux, macOS, and Windows) as well as across different languages (C++ and Python).

Expand Down
4 changes: 4 additions & 0 deletions sros2/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
omit =
# omit test directory
test/*

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this to get accurate coverage numbers. Code in test is usually pretty well covered and skewing the numbers