Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pitchfork #29

Merged
merged 29 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
239239b
Refactor for cmake submodule
mvandeberg Dec 4, 2023
631f415
Refactor project to use Pitchfork specification
mvandeberg Dec 7, 2023
4eab8b4
Cleanup CMakeLists.txt
mvandeberg Dec 8, 2023
2371d3a
Fix test target name for coverage
mvandeberg Dec 8, 2023
fb90310
Cleanup CMakeLists
mvandeberg Dec 9, 2023
6291c7d
Cleanup CI and respect namespaces in src
mvandeberg Dec 12, 2023
760df69
Fix source formatting and enable clang-16 format options
mvandeberg Dec 12, 2023
7d2d86e
static-coverage -> static-analysis
mvandeberg Dec 12, 2023
b5cc7a5
Cleanup State DB CMake issues
sgerbino Dec 14, 2023
1c430ba
Fix typo in CI test runner
sgerbino Dec 14, 2023
7fce084
Fix test binary name, normalize build script
sgerbino Dec 14, 2023
0ee172d
Format tests
sgerbino Dec 14, 2023
2fbc3e8
Remove valgrind from build
sgerbino Dec 14, 2023
ceaa402
Add sanitize build to CI
mvandeberg Feb 27, 2024
08eb1f9
Add gcc and g++ 12 back
mvandeberg Feb 27, 2024
88695df
Fix .travis.yml
mvandeberg Feb 27, 2024
d6eeec6
pushd in build.sh
mvandeberg Feb 27, 2024
5531808
Update Travis slack secret
mvandeberg Mar 1, 2024
b02161a
Merge pull request #28 from koinos/pitchfork-travis
sgerbino Mar 1, 2024
47cb43d
Merge branch 'pitchfork' into pitchfork-sanitize
sgerbino Mar 1, 2024
756a9b3
Add new directory structure to README and fix typos
sgerbino Mar 1, 2024
aa06b98
Update the Travis CI YAML
sgerbino Mar 1, 2024
c08f220
Remove the tools directory
sgerbino Mar 1, 2024
c3054e9
Use recommended cmake_policy() invocation
sgerbino Mar 1, 2024
6c0ff47
Merge pull request #27 from koinos/pitchfork-sanitize
sgerbino Mar 2, 2024
64dedd9
Update BOOST_TEST_MODULE
sgerbino Mar 4, 2024
7c16e08
Add CONFIG REQUIRED to packages
sgerbino Mar 4, 2024
b750927
Remove workflows
mvandeberg Mar 11, 2024
a3b052e
Bump koinos-cmake
mvandeberg Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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+43CXajNJGcx9Bhdwnp6puC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