53 lines
No EOL
1.6 KiB
YAML
53 lines
No EOL
1.6 KiB
YAML
image: registry.gitlab.com/ros_tracing/ros2_tracing/ci-base:latest
|
|
|
|
variables:
|
|
DOCKER_DRIVER: overlay2
|
|
PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
|
|
|
|
services:
|
|
- docker:dind
|
|
|
|
# build:
|
|
# script:
|
|
# - colcon build --symlink-install --packages-up-to $PACKAGES_LIST
|
|
# - colcon test --packages-select $PACKAGES_LIST
|
|
# artifacts:
|
|
# paths:
|
|
# - install
|
|
# - build/*/test_results/*/*.xunit.xml
|
|
# - build/*/pytest.xml
|
|
# reports:
|
|
# junit:
|
|
# - build/*/test_results/*/*.xunit.xml
|
|
# - build/*/pytest.xml
|
|
|
|
build_enabled:
|
|
script:
|
|
- vcs import < instrumentation.repos
|
|
- vcs import < ci_source_deps.repos
|
|
- apt-get update
|
|
- rosdep update
|
|
- rosdep install --from-paths . --ignore-src --rosdistro dashing -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers"
|
|
- lttng-sessiond --daemonize
|
|
- colcon build --symlink-install --cmake-args " -DWITH_LTTNG=ON" --packages-up-to $PACKAGES_LIST
|
|
- colcon test --packages-select $PACKAGES_LIST
|
|
artifacts:
|
|
paths:
|
|
- install
|
|
- build/*/test_results/*/*.xunit.xml
|
|
- build/*/pytest.xml
|
|
reports:
|
|
junit:
|
|
- build/*/test_results/*/*.xunit.xml
|
|
- build/*/pytest.xml
|
|
except:
|
|
- /.*docker.*/
|
|
|
|
ci_base_image:
|
|
image: docker:stable
|
|
script:
|
|
- cd docker-ci-base && docker build --tag ci-base .
|
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
|
|
- docker push registry.gitlab.com/ros_tracing/ros2_tracing/ci-base
|
|
only:
|
|
- /.*docker.*/ |