Update .gitlab-ci.yml
This commit is contained in:
parent
e747b77099
commit
fab428b417
1 changed files with 2 additions and 22 deletions
|
@ -1,20 +1,13 @@
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
|
PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
|
||||||
base_image_id: registry.gitlab.com/micro-ros/ros_tracing/ros2_tracing/ci-base
|
base_image_id: registry.gitlab.com/micro-ros/ros_tracing/ci_base
|
||||||
|
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- deps
|
|
||||||
- build
|
|
||||||
|
|
||||||
build_enabled:
|
build_enabled:
|
||||||
image: $base_image_id
|
image: $base_image_id
|
||||||
stage: build
|
|
||||||
script:
|
script:
|
||||||
- vcs import < instrumentation.repos
|
- vcs import < instrumentation.repos
|
||||||
|
- rosdep install --from-paths . -i . --rosdistro dashing -y
|
||||||
- lttng-sessiond --daemonize
|
- lttng-sessiond --daemonize
|
||||||
- . /root/ws/install/local_setup.sh
|
- . /root/ws/install/local_setup.sh
|
||||||
- colcon build --symlink-install --cmake-args " -DWITH_LTTNG=ON" --packages-up-to $PACKAGES_LIST
|
- colcon build --symlink-install --cmake-args " -DWITH_LTTNG=ON" --packages-up-to $PACKAGES_LIST
|
||||||
|
@ -30,16 +23,3 @@ build_enabled:
|
||||||
junit:
|
junit:
|
||||||
- build/*/test_results/*/*.xunit.xml
|
- build/*/test_results/*/*.xunit.xml
|
||||||
- build/*/pytest.xml
|
- build/*/pytest.xml
|
||||||
except:
|
|
||||||
- /.*docker.*/
|
|
||||||
|
|
||||||
ci_base_image:
|
|
||||||
stage: deps
|
|
||||||
image: docker:stable
|
|
||||||
script:
|
|
||||||
- docker build --tag $base_image_id -f docker-ci-base/Dockerfile .
|
|
||||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
|
|
||||||
- docker push $base_image_id
|
|
||||||
only:
|
|
||||||
- /.*docker.*/
|
|
||||||
- scheduled
|
|
Loading…
Add table
Add a link
Reference in a new issue