tracetools_analysis/.gitlab-ci.yml
Christophe Bedard 5d95c4b5b2 Get optional ros2_tracing branch from git commit trailer for CI
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-03-21 19:07:41 -04:00

29 lines
948 B
YAML

variables:
DOCKER_DRIVER: overlay2
PACKAGES_LIST: tracetools_analysis ros2trace_analysis
BASE_IMAGE_ID: registry.gitlab.com/micro-ros/ros_tracing/ci_base
DISTRO: foxy
ROS2TRACING_BRANCH: master
.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
build:
image: $BASE_IMAGE_ID:$DISTRO
before_script:
- . /root/ws/install/local_setup.sh
script:
- python3 get_branch.py --check
- git clone https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git --branch $(python3 get_branch.py)
- colcon build --symlink-install --event-handlers console_cohesion+ --packages-up-to $PACKAGES_LIST
- colcon test --event-handlers console_cohesion+ --packages-select $PACKAGES_LIST
- colcon test-result --all
<<: *global_artifacts