Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Prada Sarasola, Miguel
templates
Commits
d9684853
Commit
d9684853
authored
5 years ago
by
Prada Sarasola, Miguel
Browse files
Options
Downloads
Patches
Plain Diff
Add clang-format test for C++ code
parent
05ec1274
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-industrial-ci-kinetic-no-rosinstall.yml
+11
-0
11 additions, 0 deletions
.gitlab-industrial-ci-kinetic-no-rosinstall.yml
.gitlab-industrial-ci-kinetic-with-rosinstall.yml
+11
-0
11 additions, 0 deletions
.gitlab-industrial-ci-kinetic-with-rosinstall.yml
clang-format
+66
-0
66 additions, 0 deletions
clang-format
with
88 additions
and
0 deletions
.gitlab-industrial-ci-kinetic-no-rosinstall.yml
+
11
−
0
View file @
d9684853
...
@@ -21,6 +21,7 @@ before_script:
...
@@ -21,6 +21,7 @@ before_script:
-
apk add --update bash coreutils tar
-
apk add --update bash coreutils tar
-
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/13-add-clang-format-to-the-ci-tests/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,16 @@ industrial_ci_kinetic_deploy:
...
@@ -75,6 +76,16 @@ industrial_ci_kinetic_deploy:
only
:
only
:
-
tags
-
tags
clang_format
:
extends
:
.industrial_ci
variables
:
ROS_DISTRO
:
kinetic
CLANG_FORMAT_CHECK
:
file
except
:
-
tags
-
melodic-devel
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
...
...
This diff is collapsed.
Click to expand it.
.gitlab-industrial-ci-kinetic-with-rosinstall.yml
+
11
−
0
View file @
d9684853
...
@@ -21,6 +21,7 @@ before_script:
...
@@ -21,6 +21,7 @@ before_script:
-
apk add --update bash coreutils tar
-
apk add --update bash coreutils tar
-
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/13-add-clang-format-to-the-ci-tests/clang-format -O .clang-format
script
:
.ci_config/gitlab.sh
script
:
.ci_config/gitlab.sh
variables
:
variables
:
ADDITIONAL_DEBS
:
curl
ADDITIONAL_DEBS
:
curl
...
@@ -77,6 +78,16 @@ industrial_ci_kinetic_deploy:
...
@@ -77,6 +78,16 @@ industrial_ci_kinetic_deploy:
only
:
only
:
-
tags
-
tags
clang_format
:
extends
:
.industrial_ci
variables
:
ROS_DISTRO
:
kinetic
CLANG_FORMAT_CHECK
:
file
except
:
-
tags
-
melodic-devel
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
...
...
This diff is collapsed.
Click to expand it.
clang-format
0 → 100644
+
66
−
0
View file @
d9684853
---
BasedOnStyle: Google
AccessModifierOffset: -2
ConstructorInitializerIndentWidth: 2
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: true
AlwaysBreakBeforeMultilineStrings: false
BreakBeforeBinaryOperators: false
BreakBeforeTernaryOperators: false
BreakConstructorInitializersBeforeComma: true
BinPackParameters: true
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
DerivePointerBinding: false
PointerBindsToType: true
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 60
PenaltyBreakString: 1
PenaltyBreakFirstLessLess: 1000
PenaltyExcessCharacter: 1000
PenaltyReturnTypeOnItsOwnLine: 90
SpacesBeforeTrailingComments: 2
Cpp11BracedListStyle: false
Standard: Auto
IndentWidth: 2
TabWidth: 2
UseTab: Never
IndentFunctionDeclarationAfterType: false
SpacesInParentheses: false
SpacesInAngles: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpaceAfterControlStatementKeyword: true
SpaceBeforeAssignmentOperators: true
ContinuationIndentWidth: 4
SortIncludes: false
SpaceAfterCStyleCast: false
# Configure each individual brace in BraceWrapping
BreakBeforeBraces: Custom
# Control of individual brace wrapping cases
BraceWrapping: {
AfterClass: 'true'
AfterControlStatement: 'true'
AfterEnum : 'true'
AfterFunction : 'true'
AfterNamespace : 'true'
AfterStruct : 'true'
AfterUnion : 'true'
BeforeCatch : 'true'
BeforeElse : 'true'
IndentBraces : 'false'
}
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment