-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to moveit_ci, apply clang-format (#124)
* Switch to moveit_ci, apply clang-format * Update .travis.yml * Update .travis.yml
- Loading branch information
1 parent
3ea03e7
commit b454935
Showing
7 changed files
with
130 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
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: 100 | ||
PenaltyBreakFirstLessLess: 1000 | ||
PenaltyExcessCharacter: 1000 | ||
PenaltyReturnTypeOnItsOwnLine: 70 | ||
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 file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,26 @@ | ||
# while this doesn't require sudo we don't want to run within a Docker container | ||
sudo: true | ||
dist: trusty | ||
language: python | ||
python: | ||
- "3.4" | ||
# This config file for Travis CI utilizes https://github.com/ros-planning/moveit_ci package. | ||
sudo: required | ||
dist: xenial # distro used by Travis, moveit_ci uses the docker image's distro | ||
services: | ||
- docker | ||
language: cpp | ||
compiler: gcc | ||
cache: ccache | ||
|
||
env: | ||
global: | ||
- JOB_PATH=/tmp/devel_job | ||
- DOCKER_IMAGE=moveit/moveit:master-source | ||
- CXXFLAGS="-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls -Wno-unused-parameter -Wno-unused-function" | ||
- WARNINGS_OK=false | ||
matrix: | ||
- ROS_DISTRO_NAME=kinetic OS_NAME=ubuntu OS_CODE_NAME=xenial ARCH=amd64 | ||
install: | ||
# either install the latest released version of ros_buildfarm | ||
- pip install ros_buildfarm | ||
# checkout catkin for catkin_test_results script | ||
- git clone https://github.com/ros/catkin /tmp/catkin | ||
# run devel job for a ROS repository with the same name as this repo | ||
- export REPOSITORY_NAME=`basename $TRAVIS_BUILD_DIR` | ||
# use the code already checked out by Travis | ||
- mkdir -p $JOB_PATH/catkin_workspace/src | ||
- cp -R $TRAVIS_BUILD_DIR $JOB_PATH/catkin_workspace/src/ | ||
# generate the script to run a devel job for that target and repo | ||
- generate_devel_script.py https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml $ROS_DISTRO_NAME default $REPOSITORY_NAME $OS_NAME $OS_CODE_NAME $ARCH > $JOB_PATH/devel_job.sh | ||
- cd $JOB_PATH | ||
- cat devel_job.sh | ||
# run the actual job which involves Docker | ||
- sh devel_job.sh -y | ||
- TEST="clang-format" # TODO(davetcoleman): enable catkin_lint in the future | ||
#- TEST=clang-tidy-fix # TODO(davetcoleman): enable in the future | ||
- DOCKER_IMAGE=moveit/moveit:melodic-source | ||
- DOCKER_IMAGE=moveit/moveit:master-source | ||
- DOCKER_IMAGE=moveit/moveit:kinetic-ci TEST_BLACKLIST=moveit_ros_perception | ||
|
||
before_script: | ||
- git clone -q --depth=1 https://github.com/ros-planning/moveit_ci.git .moveit_ci | ||
|
||
script: | ||
# get summary of test results | ||
- /tmp/catkin/bin/catkin_test_results $JOB_PATH/catkin_workspace/test_results --all | ||
notifications: | ||
email: false | ||
- .moveit_ci/travis.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters