Create CI config variable for setting ros2_tracing repo branch

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
This commit is contained in:
Christophe Bedard 2020-03-04 10:37:13 -08:00
parent bd35c56932
commit 01163813b1

View file

@ -3,6 +3,7 @@ variables:
PACKAGES_LIST: tracetools_analysis ros2trace_analysis PACKAGES_LIST: tracetools_analysis ros2trace_analysis
BASE_IMAGE_ID: registry.gitlab.com/micro-ros/ros_tracing/ci_base BASE_IMAGE_ID: registry.gitlab.com/micro-ros/ros_tracing/ci_base
DISTRO: foxy DISTRO: foxy
ROS2TRACING_BRANCH: master
.global_artifacts: &global_artifacts .global_artifacts: &global_artifacts
artifacts: artifacts:
@ -18,7 +19,7 @@ variables:
build: build:
image: $BASE_IMAGE_ID:$DISTRO image: $BASE_IMAGE_ID:$DISTRO
before_script: before_script:
- git clone https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git - git clone https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git --branch $ROS2TRACING_BRANCH
- . /root/ws/install/local_setup.sh - . /root/ws/install/local_setup.sh
script: script:
- colcon build --symlink-install --packages-up-to $PACKAGES_LIST - colcon build --symlink-install --packages-up-to $PACKAGES_LIST