From f720c450fc165c85b3507f9aa61ea5b75a00d294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20L=C3=BCtkebohle?= Date: Mon, 17 Jun 2019 14:08:59 +0000 Subject: [PATCH] Initial gitlab-ci.yml --- .gitlab-ci.yml | 26 ++++++++++++++++++++++++++ tracetools/package.xml | 2 +- tracetools_test/CMakeLists.txt | 1 + tracetools_test/package.xml | 2 +- 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f7dadea --- /dev/null +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file diff --git a/tracetools/package.xml b/tracetools/package.xml index fcc90f1..6bb4256 100644 --- a/tracetools/package.xml +++ b/tracetools/package.xml @@ -13,7 +13,7 @@ ament_cmake pkg-config - + liblttng-ust-dev ament_lint_auto ament_lint_common diff --git a/tracetools_test/CMakeLists.txt b/tracetools_test/CMakeLists.txt index 02ab483..a7d339e 100644 --- a/tracetools_test/CMakeLists.txt +++ b/tracetools_test/CMakeLists.txt @@ -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 diff --git a/tracetools_test/package.xml b/tracetools_test/package.xml index 075b068..ad628fd 100644 --- a/tracetools_test/package.xml +++ b/tracetools_test/package.xml @@ -24,7 +24,7 @@ ament_lint_common launch_ros python3-pytest - tracetools_trace + tracetools ament_cmake