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,19 +15,19 @@ 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
- build/*/test_results/*/*.xunit.xml - build/*/test_results/*/*.xunit.xml
reports: reports:
junit: build/*/Testing/*/Test.xml junit: build/*/Testing/*/Test.xml
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