Merge branch 'improve-ci-config' into 'master'

Improve CI config

See merge request micro-ROS/ros_tracing/tracetools_analysis!51
This commit is contained in:
Christophe Bedard 2020-03-04 18:42:06 +00:00
commit 8d94dcf97e

View file

@ -1,7 +1,9 @@
variables:
DOCKER_DRIVER: overlay2
PACKAGES_LIST: tracetools_analysis ros2trace_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
DISTRO: foxy
ROS2TRACING_BRANCH: master
.global_artifacts: &global_artifacts
artifacts:
@ -15,13 +17,12 @@ variables:
- build/*/pytest.xml
build:
image: $base_image_id
image: $BASE_IMAGE_ID:$DISTRO
before_script:
- git clone https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git
- git clone https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git --branch $ROS2TRACING_BRANCH
- . /root/ws/install/local_setup.sh
script:
- colcon build --symlink-install --packages-up-to $PACKAGES_LIST
- . install/local_setup.sh
- colcon test --packages-select $PACKAGES_LIST --pytest-args -o addopts=
- colcon test-result --all
<<: *global_artifacts