Merge branch 'ci-support' into 'tracetools'

Initial gitlab-ci.yml

See merge request micro-ROS/ros2_tracing!2
This commit is contained in:
Ingo Lütkebohle 2019-06-17 14:08:59 +00:00
commit 7a326128de
4 changed files with 29 additions and 2 deletions

26
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,26 @@
image: ros:dashing-ros-base
variables:
DOCKER_DRIVER: overlay2
before_script:
- apt update
- rosdep update
- rosdep install -y --from-paths . -i .
- ln -s src
build:
script:
- colcon build
- colcon test
artifacts:
paths:
- install
build_enabled:
script:
- colcon build --cmake-args -DWITH_LTTNG=ON
- colcon test
artifacts:
paths:
- install

View file

@ -13,7 +13,7 @@
<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>pkg-config</buildtool_depend>
<!-- explicitly not depending on LTTng -->
<depend>liblttng-ust-dev</depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

View file

@ -17,6 +17,7 @@ if(BUILD_TESTING)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(std_srvs REQUIRED)
find_package(tracetools REQUIRED)
add_executable(test_publisher
src/test_publisher.cpp

View file

@ -24,7 +24,7 @@
<test_depend>ament_lint_common</test_depend>
<test_depend>launch_ros</test_depend>
<test_depend>python3-pytest</test_depend>
<test_depend>tracetools_trace</test_depend>
<test_depend>tracetools</test_depend>
<export>
<build_type>ament_cmake</build_type>