Setup Gitlab CI
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 theROSINSTALL_DEFAULT
variable. - 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