mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +02:00
use industrial-ci pipeline
This commit is contained in:
@@ -1,38 +1,18 @@
|
|||||||
image: ros:kinetic-robot
|
image: docker:git
|
||||||
|
services:
|
||||||
cache:
|
- docker:dind
|
||||||
paths:
|
|
||||||
- ccache/
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- git clone https://gitlab.com/VictorLamoine/ros_gitlab_ci.git
|
- apk add --update bash coreutils tar
|
||||||
- source ros_gitlab_ci/gitlab-ci.bash >/dev/null
|
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci .industrial_ci
|
||||||
|
|
||||||
# catkin_lint
|
clang-format:
|
||||||
catkin lint:
|
variables:
|
||||||
tags:
|
CLANG_FORMAT_CHECK: "file"
|
||||||
- docker
|
CLANG_FORMAT_VERSION: "6.0"
|
||||||
stage: build
|
ROS_DISTRO: "kinetic"
|
||||||
image: ros:kinetic-ros-core
|
script: .industrial_ci/gitlab.sh
|
||||||
before_script:
|
|
||||||
- apt update >/dev/null 2>&1
|
|
||||||
- apt install -y python-catkin-lint >/dev/null 2>&1
|
|
||||||
script:
|
|
||||||
- catkin_lint -W3 .
|
|
||||||
|
|
||||||
# catkin_make
|
|
||||||
catkin_make:
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- catkin_make
|
|
||||||
|
|
||||||
catkin_make tests:
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- catkin_make run_tests
|
|
||||||
- catkin_test_results # Check if one of the tests failed!
|
|
||||||
|
|
||||||
|
build_kinetic:
|
||||||
|
variables:
|
||||||
|
ROS_DISTRO: "kinetic"
|
||||||
|
script: .industrial_ci/gitlab.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user