Merge branch 'enhance-ci-config' into 'master'
Enhance CI config See merge request micro-ROS/ros_tracing/ros2_tracing!145
This commit is contained in:
commit
75f38fea8b
1 changed files with 12 additions and 11 deletions
|
@ -1,8 +1,8 @@
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
|
PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
|
||||||
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
|
||||||
|
|
||||||
.global_artifacts: &global_artifacts
|
.global_artifacts: &global_artifacts
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -20,32 +20,33 @@ before_script:
|
||||||
- . /root/ws/install/local_setup.sh
|
- . /root/ws/install/local_setup.sh
|
||||||
|
|
||||||
tracing_enabled:
|
tracing_enabled:
|
||||||
image: $base_image_id:$distro
|
image: $BASE_IMAGE_ID:$DISTRO
|
||||||
script:
|
script:
|
||||||
|
- lttng --version && apt list lttng-tools liblttng-ust-dev python3-lttng python3-babeltrace
|
||||||
- lttng-sessiond --daemonize
|
- lttng-sessiond --daemonize
|
||||||
- colcon build --symlink-install --packages-up-to $PACKAGES_LIST
|
- colcon build --symlink-install --event-handlers console_cohesion+ --packages-up-to $PACKAGES_LIST
|
||||||
- . install/local_setup.sh
|
- . install/local_setup.sh
|
||||||
- ./build/tracetools/status
|
- ./build/tracetools/status
|
||||||
- colcon test --packages-select $PACKAGES_LIST
|
- colcon test --event-handlers console_cohesion+ --packages-select $PACKAGES_LIST
|
||||||
- colcon test-result --all
|
- colcon test-result --all
|
||||||
<<: *global_artifacts
|
<<: *global_artifacts
|
||||||
|
|
||||||
tracing_disabled:
|
tracing_disabled:
|
||||||
image: $base_image_id:$distro
|
image: $BASE_IMAGE_ID:$DISTRO
|
||||||
script:
|
script:
|
||||||
- colcon build --symlink-install --cmake-args " -DTRACETOOLS_DISABLED=ON" --packages-up-to $PACKAGES_LIST
|
- colcon build --symlink-install --event-handlers console_cohesion+ --cmake-args " -DTRACETOOLS_DISABLED=ON" --packages-up-to $PACKAGES_LIST
|
||||||
- . install/local_setup.sh
|
- . install/local_setup.sh
|
||||||
- (! ./build/tracetools/status)
|
- (! ./build/tracetools/status)
|
||||||
- colcon test --packages-select $PACKAGES_LIST
|
- colcon test --event-handlers console_cohesion+ --packages-select $PACKAGES_LIST
|
||||||
- colcon test-result --all
|
- colcon test-result --all
|
||||||
<<: *global_artifacts
|
<<: *global_artifacts
|
||||||
|
|
||||||
no_lttng:
|
no_lttng:
|
||||||
image: $base_image_id:$distro-base
|
image: $BASE_IMAGE_ID:$DISTRO-base
|
||||||
script:
|
script:
|
||||||
- colcon build --symlink-install --packages-up-to $PACKAGES_LIST
|
- colcon build --symlink-install --event-handlers console_cohesion+ --packages-up-to $PACKAGES_LIST
|
||||||
- . install/local_setup.sh
|
- . install/local_setup.sh
|
||||||
- (! ./build/tracetools/status)
|
- (! ./build/tracetools/status)
|
||||||
- colcon test --packages-select $PACKAGES_LIST
|
- colcon test --event-handlers console_cohesion+ --packages-select $PACKAGES_LIST
|
||||||
- colcon test-result --all
|
- colcon test-result --all
|
||||||
<<: *global_artifacts
|
<<: *global_artifacts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue