Skip to content
Snippets Groups Projects

Resolve "Add clang format to the CI tests"

Merged Prada Sarasola, Miguel requested to merge 13-add-clang-format-to-the-ci-tests into master
Files
3
@@ -18,9 +18,10 @@ before_script:
@@ -18,9 +18,10 @@ before_script:
.industrial_ci:
.industrial_ci:
stage: build
stage: build
before_script:
before_script:
- apk add --update bash coreutils tar
- apk add --update bash coreutils tar wget
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b legacy
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b legacy
- docker login ${ARTIFACT_DOCKER_URL} -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN}
- docker login ${ARTIFACT_DOCKER_URL} -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN}
 
- wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/clang-format -O .clang-format
script: .ci_config/gitlab.sh
script: .ci_config/gitlab.sh
variables:
variables:
ADDITIONAL_DEBS: curl
ADDITIONAL_DEBS: curl
@@ -75,6 +76,15 @@ industrial_ci_kinetic_deploy:
@@ -75,6 +76,15 @@ industrial_ci_kinetic_deploy:
only:
only:
- tags
- tags
 
clang_format:
 
extends: .industrial_ci
 
stage: postcheck
 
variables:
 
ROS_DISTRO: kinetic
 
CLANG_FORMAT_CHECK: file
 
CLANG_FORMAT_VERSION: "3.8"
 
allow_failure: yes
 
##########################################################
##########################################################
## Simple check for basic Python syntax errors; this is much less thorough than
## Simple check for basic Python syntax errors; this is much less thorough than
## other options like pylint, but much faster and less strict
## other options like pylint, but much faster and less strict
Loading