Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainAchab authored and Alexandre Bossard committed Dec 5, 2018
0 parents commit af84c52
Show file tree
Hide file tree
Showing 340 changed files with 32,394 additions and 0 deletions.
114 changes: 114 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---
Language: Cpp
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: false
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 60
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
RawStringFormats:
- Delimiter: pb
Language: TextProto
BasedOnStyle: google
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...

9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build*
.tags
.DS_Store
._*
conan_ycm_flags.json
__pycache__

.venv/
*.egg-info/
99 changes: 99 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
stages:
- build
- deploy

build/linux:
stage: build
except:
- schedules
tags:
- linux
script:
- dmenv install
- dmenv run -- python run-ci.py build-and-test --profile gcc8

deploy/linux:
stage: deploy
except:
- schedules
when: manual
tags:
- linux
only:
- tags
script:
- dmenv install
- dmenv run -- python run-ci.py deploy --profile gcc8 --profile android --git-tag ${CI_COMMIT_TAG}

build/macos:
stage: build
except:
- schedules
tags:
- macos
script:
- dmenv install
- dmenv run -- python run-ci.py build-and-test --profile macos

deploy/macos:
stage: deploy
except:
- schedules
when: manual
tags:
- macos
only:
- tags
script:
- dmenv install
- dmenv run -- python run-ci.py deploy --profile macos --profile ios --git-tag ${CI_COMMIT_TAG}

nightly/android:
stage: build
only:
- schedules
script:
- dmenv install
- dmenv run -- python run-ci.py nightly
tags:
- linux

nightly/ios:
stage: build
only:
- schedules
script:
- dmenv install
- dmenv run -- python run-ci.py nightly
tags:
- macos

coverage:
stage: build
only:
- schedules
script:
- dmenv install
- dmenv run -- python run-ci.py build-and-test --profile gcc8 --coverage
- mv build/gcc8/x86_64/Release/coverage coverage
tags:
- linux
artifacts:
paths:
- coverage/
expire_in: 7 days

pages:
stage: deploy
only:
- schedules
dependencies:
- coverage
script:
- mv coverage/ public/
artifacts:
paths:
- public
expire_in: 7 days
tags:
- linux
7 changes: 7 additions & 0 deletions .nvimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
let g:clang_format_path='clang-format-6.0'
function! Formatonsave()
"let l:formatdiff = 0
let l:lines = 'all'
pyf ~/.vim/clang-format.py
endfunction
autocmd BufWritePre *.h,*.cc,*.cpp,*.hpp,*.c call Formatonsave()
Loading

0 comments on commit af84c52

Please sign in to comment.