From 92943a48fb17e12500eac67359046db3b34d442a Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Wed, 26 Jun 2019 09:49:52 +0200 Subject: [PATCH 1/3] Add gitlab-ci config file --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..19427a9 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: registry.gitlab.com/ros_tracing/ros2_tracing/ci-base:latest + +variables: + DOCKER_DRIVER: overlay2 + PACKAGES_LIST: tracetools_analysis + +before_script: + - git clone https://gitlab.com/ros_tracing/ros2_tracing.git + - apt-get update + - rosdep update + - rosdep install --from-paths . --ignore-src --rosdistro dashing -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers" + +build: + script: + - colcon build --symlink-install --packages-up-to $PACKAGES_LIST + - colcon test --packages-select $PACKAGES_LIST + artifacts: + paths: + - install + - build/*/test_results/*/*.xunit.xml + reports: + junit: build/*/test_results/*/*.xunit.xml From 81e499eb17e57b71d9ba656197efc93ac1b4011d Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Wed, 26 Jun 2019 09:54:05 +0200 Subject: [PATCH 2/3] Remove rosdep lines --- .gitlab-ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 19427a9..e35147e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,9 +6,6 @@ variables: before_script: - git clone https://gitlab.com/ros_tracing/ros2_tracing.git - - apt-get update - - rosdep update - - rosdep install --from-paths . --ignore-src --rosdistro dashing -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers" build: script: From dabd7eb84fe5731123ffa93bd1fbe579a927581b Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Wed, 26 Jun 2019 10:05:19 +0200 Subject: [PATCH 3/3] Add pytest.xml to report artifacts list --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e35147e..dc61ed4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,5 +15,8 @@ build: paths: - install - build/*/test_results/*/*.xunit.xml + - build/*/pytest.xml reports: - junit: build/*/test_results/*/*.xunit.xml + junit: + - build/*/test_results/*/*.xunit.xml + - build/*/pytest.xml