Skip to content

Commit

Permalink
Merge pull request #12 from RoboJackets/feat/simple-ci
Browse files Browse the repository at this point in the history
Feat/simple ci
  • Loading branch information
VAM7686 committed Nov 20, 2021
2 parents 7421133 + 133f35d commit 0149244
Show file tree
Hide file tree
Showing 12 changed files with 137 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
BasedOnStyle: Google
BreakBeforeBraces: Allman
AccessModifierOffset: -2
AlignEscapedNewlines: Right
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
BinPackParameters: true
BraceWrapping:
AfterUnion: true
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: BeforeComma
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: true
IndentWidth: 2
IndentWrappedFunctionNames: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 60
PenaltyBreakFirstLessLess: 1000
PenaltyBreakString: 1
PenaltyExcessCharacter: 1000
PenaltyReturnTypeOnItsOwnLine: 90
PointerAlignment: Left
SortIncludes: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: 2
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
Standard: Auto
TabWidth: 2
UseTab: Never
46 changes: 46 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
Checks: '-*,
performance-*,
llvm-namespace-comment,
modernize-*,
readability-*,
bugprone-*
-clang-diagnostic-unused-command-line-argument,
'
WarningsAsErrors: '*'
HeaderFilterRegex: 'src/igvc-software/igvc_(navigation)/.*\.h'
AnalyzeTemporaryDtors: false
CheckOptions:
- key: llvm-namespace-comment.ShortNamespaceLines
value: '10'
- key: llvm-namespace-comment.SpacesBeforeComments
value: '2'
- key: readability-braces-around-statements.ShortStatementLines
value: '2'
# Type names are CamelCase
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
# Method names are camelBack
- key: readability-identifier-naming.MethodCase
value: camelBack
# Variable names snake_case
- key: readability-identifier-naming.VariableCase
value: lower_case
# Member variables are snake_case_
- key: readability-identifier-naming.ClassMemberSuffix
value: '_'
# Except for constexpr
- key: readability-identifier-naming.ConstexprVariableCase
value: lower_case
- key: readability-identifier-naming.ConstexprVariableSuffix
value: ''
# Gobal variables are g_lower_case
- key: readability-identifier-naming.GlobalVariableCase
value: lower_case
- key: readability-identifier-naming.GlobalVariablePrefix
value: 'g_'
...
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
container: ros:galactic
steps:
- uses: actions/checkout@v2
with:
path: src/urc-software
- name: Install Dependencies
shell: bash
run: |
source /opt/ros/galactic/setup.bash
sudo apt-get update
rosdep update --rosdistro=galactic
rosdep install --from-paths . --ignore-src -y
- name: Build
shell: bash
run: |
source /opt/ros/galactic/setup.bash
colcon build
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# JetBrains Clion
*/.idea/
/.idea/

# VSCode
.vscode

# CMake
*/cmake-build-*/

# sublime-text
*.sublime-workspace
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# urc-software
# urc-software [![CI Status Badge](https://github.com/RoboJackets/urc-software/actions/workflows/ci.yml/badge.svg)](https://github.com/RoboJackets/urc-software/actions)


Welcome to the RoboJackets URC software repo! This document will give you a brief description of the repo's layout and an overview of the repo.
Empty file added urc_analysis/launch/.gitkeep
Empty file.
Empty file.
Empty file added urc_msgs/launch/.gitkeep
Empty file.
Empty file added urc_navigation/launch/.gitkeep
Empty file.
Empty file added urc_perception/launch/.gitkeep
Empty file.
Empty file added urc_platform/launch/.gitkeep
Empty file.
Empty file added urc_util/launch/.gitkeep
Empty file.

0 comments on commit 0149244

Please sign in to comment.