61 lines (60 loc) · 1.92 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
steps:
- name: Install prerequisites for action-ros-ci and FastRTPS
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
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
- 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
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