Skip to content

Commit

Permalink
Merge pull request #29 from koinos/pitchfork
Browse files Browse the repository at this point in the history
Pitchfork
  • Loading branch information
mvandeberg authored Mar 11, 2024
2 parents 8d25c57 + a3b052e commit 3e9e692
Show file tree
Hide file tree
Showing 81 changed files with 6,573 additions and 7,801 deletions.
142 changes: 142 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
---
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
PadOperators: true
AlignConsecutiveBitFields:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
PadOperators: true
AlignConsecutiveDeclarations:
Enabled: false
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
AllowAllArgumentsOnNextLine: False
AllowAllParametersOfDeclarationOnNextLine: False
# clang-18
#AllowBreakBeforeNoexceptSpecifier: Never
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: False
AllowShortEnumsOnASingleLine: False
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: False
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: False
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: False
BinPackParameters: False
BitFieldColonSpacing: Both
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: True
AfterClass: True
AfterControlStatement: Always
AfterEnum: True
AfterFunction: True
AfterNamespace: False
AfterObjCDeclaration: True
AfterStruct: True
AfterUnion: True
AfterExternBlock: True
BeforeCatch: True
BeforeElse: True
BeforeLambdaBody: True
BeforeWhile: True
IndentBraces: False
SplitEmptyFunction: False
SplitEmptyRecord: False
SplitEmptyNamespace: False
# clang-17
#BracedInitializerIndentWidth: 2
BreakAfterAttributes: Always
BreakArrays: False
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeConceptDeclarations: Always
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: True
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterComma
BreakStringLiterals: False
ColumnLimit: 120
CompactNamespaces: True
ContinuationIndentWidth: 2
Cpp11BracedListStyle: True
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: true
IndentAccessModifiers: False
IndentCaseBlocks: True
IndentCaseLabels: True
IndentExternBlock: Indent
IndentGotoLabels: False
IndentPPDirectives: AfterHash
IndentWidth: 2
IndentWrappedFunctionNames: False
InsertBraces: False
InsertNewlineAtEOF: True
IntegerLiteralSeparator:
Binary: 0
Decimal: 3
Hex: 0
KeepEmptyLinesAtTheStartOfBlocks: False
LambdaBodyIndentation: Signature
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
PackConstructorInitializers: Never
PointerAlignment: Left
QualifierAlignment: Left
ReferenceAlignment: Left
ReflowComments: True
RemoveBracesLLVM: False
# clang-17
#RemoveParentheses: False
RemoveSemicolon: False
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Always
ShortNamespaceLines: 0
SortIncludes: CaseInsensitive
SortUsingDeclarations: LexicographicNumeric
SpaceAfterCStyleCast: False
SpaceAfterLogicalNot: False
SpaceAfterTemplateKeyword: False
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: True
SpaceBeforeCaseColon: False
SpaceBeforeCpp11BracedList: False
SpaceBeforeCtorInitializerColon: False
SpaceBeforeInheritanceColon: False
SpaceBeforeParens: Never
SpaceBeforeRangeBasedForLoopColon: False
SpaceBeforeSquareBrackets: False
SpaceInEmptyBlock: False
SpaceInEmptyParentheses: False
SpacesBeforeTrailingComments: 1
SpacesInAngles: Always
SpacesInCStyleCastParentheses: False
SpacesInConditionalStatement: True
SpacesInContainerLiterals: True
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParentheses: True
SpacesInSquareBrackets: True
Standard: c++20
TabWidth: 2
UseTab: Never
19 changes: 0 additions & 19 deletions .github/workflows/add_issue_to_project.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/add_pr_to_project.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/add_to_project.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/close_issues.yml

This file was deleted.

118 changes: 93 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,115 @@ language: c++

cache:
ccache: true
pip: true

addons:
apt:
packages:
- python3
- python3-pip
- python3-setuptools
update: true
packages:
- clang
- clang-format
- llvm
- llvm-dev
- lcov
- ruby
- gcc-12
- g++-12

env:
global:
- CMAKE_C_COMPILER_LAUNCHER=ccache
- CMAKE_CXX_COMPILER_LAUNCHER=ccache

jobs:
include:
- os: linux
- name: "Static Analysis"
os: linux
dist: jammy
env:
- RUN_TYPE=coverage
- MATRIX_EVAL="CC=clang-11 && CXX=clang++-11"
- os: linux
- CC=clang
- CXX=clang++
before_script:
- cmake -DCMAKE_BUILD_TYPE=Debug -DSTATIC_ANALYSIS=ON .
script:
- cmake --build . --config Debug --parallel 3

- name: "Sanitizer"
os: linux
dist: jammy
env:
- RUN_TYPE=test
- MATRIX_EVAL="CC=gcc && CXX=g++"
- os: linux
- CC=clang
- CXX=clang++
before_script:
- mkdir build-address
- pushd build-address
- cmake -DCMAKE_BUILD_TYPE=Debug -DSANITIZER=Address ..
- cmake --build . --config Debug --parallel 3
- popd
- mkdir build-stack
- pushd build-stack
- cmake -DCMAKE_BUILD_TYPE=Debug -DSANITIZER=Stack ..
- cmake --build . --config Debug --parallel 3
- popd
- mkdir build-thread
- pushd build-thread
- cmake -DCMAKE_BUILD_TYPE=Debug -DSANITIZER=Thread ..
- cmake --build . --config Debug --parallel 3
- popd
script:
- pushd build-address/tests
- ctest -j1 --output-on-failure
- popd
- pushd build-stack/tests
- ctest -j1 --output-on-failure
- popd
- pushd build-thread/tests
- ctest -j1 --output-on-failure

- name: "Coverage"
os: linux
dist: jammy
env:
- RUN_TYPE=test
- MATRIX_EVAL="CC=clang-11 && CXX=clang++-11"

before_install:
- eval "${MATRIX_EVAL}"
- CC=clang
- CXX=clang++
install:
- sudo gem install coveralls-lcov
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON ..
script:
- cmake --build . --config Debug --parallel 3 --target coverage
after_success:
- coveralls-lcov --repo-token $COVERALLS_REPO_TOKEN --service-name travis-pro --service-job-id $TRAVIS_JOB_ID ./coverage.info

install:
- ci/install.sh

script:
- ci/build.sh && ci/test.sh
- name: "GCC Unit Tests"
os: linux
dist: jammy
env:
- CC=gcc-12
- CXX=g++-12
before_script:
- cmake -DCMAKE_BUILD_TYPE=Release .
- cmake --build . --config Release --parallel 3
script:
- cd tests
- ctest -j3 --output-on-failure

after_success:
- ci/after_success.sh
- name: "Clang Unit Tests and Formatting"
os: linux
dist: jammy
env:
- CC=clang
- CXX=clang++
before_script:
- cmake -DCMAKE_BUILD_TYPE=Release .
- cmake --build . --config Release --parallel 3
script:
- cmake --build . --config Release --parallel 3 --target format.check
- cd tests
- ctest -j3 --output-on-failure

notifications:
slack:
secure: Fx5AGddmmeZqZBUbRdI2/zLaiWy7H+afXEWLYSEnu8+bf6sHCOTPvDsHbgPRZikAdSCa0GaxDzqVeFcOFYgX0+XPQgpY4Q2mBwrNViajxArvJXghA/4DfAAUx7knr22RbZjUsEnp2wEGU6Rp9UHo3Y+IOwXR/2v6BnQ1ntMzS1Np1X4HegHXxArrfmbx6JU+43CXajNJGcx9Bhdwnp6puCRQ+gGUz4+tSwy/0UTX4APTGKVqxuhOqRlpVkbCh1g4l6wDJ5gBP0AXM3d2BTmQYdgL6/BwqJG4REjSp6GSaoEOa22cnPtbmXnWY7/npb6uVRVo/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please sign in to comment.