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:
commit
8d94dcf97e
1 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,9 @@
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
PACKAGES_LIST: tracetools_analysis ros2trace_analysis
|
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
|
.global_artifacts: &global_artifacts
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -15,13 +17,12 @@ variables:
|
||||||
- build/*/pytest.xml
|
- build/*/pytest.xml
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: $base_image_id
|
image: $BASE_IMAGE_ID:$DISTRO
|
||||||
before_script:
|
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
|
- . /root/ws/install/local_setup.sh
|
||||||
script:
|
script:
|
||||||
- colcon build --symlink-install --packages-up-to $PACKAGES_LIST
|
- 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 --packages-select $PACKAGES_LIST --pytest-args -o addopts=
|
||||||
- colcon test-result --all
|
- colcon test-result --all
|
||||||
<<: *global_artifacts
|
<<: *global_artifacts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue