Use packages list variable

This commit is contained in:
Christophe Bedard 2019-06-25 12:03:14 +02:00
parent 735232bf8e
commit 374d10dbf5

View file

@ -2,6 +2,7 @@ image: ros:dashing-ros-base-bionic
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
before_script: before_script:
- apt-get update - apt-get update
@ -14,8 +15,8 @@ before_script:
build: build:
script: script:
- colcon build --symlink-install --packages-up-to tracetools tracetools_test - colcon build --symlink-install --packages-up-to $PACKAGES_LIST
- colcon test --packages-select tracetools tracetools_test - colcon test --packages-select $PACKAGES_LIST
artifacts: artifacts:
paths: paths:
- install - install
@ -25,8 +26,8 @@ build:
build_enabled: build_enabled:
script: script:
- colcon build --symlink-install --cmake-args " -DWITH_LTTNG=ON" --packages-up-to tracetools tracetools_test - colcon build --symlink-install --cmake-args " -DWITH_LTTNG=ON" --packages-up-to $PACKAGES_LIST
- colcon test --packages-select tracetools tracetools_test - colcon test --packages-select $PACKAGES_LIST
artifacts: artifacts:
paths: paths:
- install - install