Skip to content

Setup Gitlab CI

Mark Weinreuter requested to merge uieai/rll_sdk:gitlab-ci into master

This MR sets up two Gitlab CI stages (see https://gitlab.ipr.kit.edu/rll/rll_sdk/issues/38) to:

  • check C++ source code formatting with clang-format3.9
  • build the project

using the ROS industrial_ci scripts.

This .gitlab-ci.yml config file can be used for a other repos as well by making a few changes:

  • to install dependencies add a .ci.rosinstall file for your project
  • if you do not want to add an explicit file, a .ci.rosinstall file will be created for you with the content specified by the ROSINSTALL_DEFAULTvariable.
  • if you do not want to build some packages blacklist them

Building the project within the CI docker behaves differently than building in your local environment. It requires the packages to be installed, otherwise it will not find them.

Known issues:

  • you cannot exclude packages from clang-format
  • if the format stage fails, the build stage is canceled
  • no clang-tidy integration yet
  • melodic has not been tested yet

Merge request reports

Loading