ros2_tracing/.gitlab-ci.yml
Christophe Bedard d1c9dfa026 Print LTTng version before building
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-02-29 20:19:56 -05:00

52 lines
1.6 KiB
YAML

variables:
DOCKER_DRIVER: overlay2
PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
BASE_IMAGE_ID: registry.gitlab.com/micro-ros/ros_tracing/ci_base
DISTRO: foxy
.global_artifacts: &global_artifacts
artifacts:
paths:
- install
- build/*/test_results/*/*.xunit.xml
- build/*/pytest.xml
reports:
junit:
- build/*/test_results/*/*.xunit.xml
- build/*/pytest.xml
before_script:
- vcs import < instrumented.repos
- . /root/ws/install/local_setup.sh
tracing_enabled:
image: $BASE_IMAGE_ID:$DISTRO
script:
- lttng --version && apt list lttng-tools liblttng-ust-dev python3-lttng python3-babeltrace
- lttng-sessiond --daemonize
- colcon build --symlink-install --packages-up-to $PACKAGES_LIST
- . install/local_setup.sh
- ./build/tracetools/status
- colcon test --packages-select $PACKAGES_LIST
- colcon test-result --all
<<: *global_artifacts
tracing_disabled:
image: $BASE_IMAGE_ID:$DISTRO
script:
- colcon build --symlink-install --cmake-args " -DTRACETOOLS_DISABLED=ON" --packages-up-to $PACKAGES_LIST
- . install/local_setup.sh
- (! ./build/tracetools/status)
- colcon test --packages-select $PACKAGES_LIST
- colcon test-result --all
<<: *global_artifacts
no_lttng:
image: $BASE_IMAGE_ID:$DISTRO-base
script:
- colcon build --symlink-install --packages-up-to $PACKAGES_LIST
- . install/local_setup.sh
- (! ./build/tracetools/status)
- colcon test --packages-select $PACKAGES_LIST
- colcon test-result --all
<<: *global_artifacts