Use global_artifacts anchor

This commit is contained in:
Christophe Bedard 2019-10-13 13:34:05 -07:00
parent 5fe8621fa1
commit f1b3dc7302

View file

@ -3,6 +3,17 @@ variables:
PACKAGES_LIST: tracetools_analysis PACKAGES_LIST: tracetools_analysis
base_image_id: registry.gitlab.com/micro-ros/ros_tracing/ci_base base_image_id: registry.gitlab.com/micro-ros/ros_tracing/ci_base
.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: build:
image: $base_image_id image: $base_image_id
before_script: before_script:
@ -13,12 +24,4 @@ build:
- . install/local_setup.sh - . install/local_setup.sh
- colcon test --packages-select $PACKAGES_LIST - colcon test --packages-select $PACKAGES_LIST
- colcon test-result --all - colcon test-result --all
artifacts: <<: *global_artifacts
paths:
- install
- build/*/test_results/*/*.xunit.xml
- build/*/pytest.xml
reports:
junit:
- build/*/test_results/*/*.xunit.xml
- build/*/pytest.xml