Skip to content

Commit

Permalink
Merge pull request #2214 from GMLC-TDC/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
phlptp authored Nov 29, 2021
2 parents 91f4cbc + 49d5beb commit 39470e8
Show file tree
Hide file tree
Showing 859 changed files with 11,880 additions and 6,129 deletions.
5 changes: 3 additions & 2 deletions .ci/.drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ steps:
- uname -a

- name: submodules
image: docker:git
image: alpine:3.12
commands:
# for updating submodules to latest upstream, add --remote
- apk add --no-cache git
- git submodule update --init --recursive

- name: build
Expand Down Expand Up @@ -55,7 +56,7 @@ steps:
- uname -a

- name: submodules
image: docker:git
image: alpine/git
commands:
# for updating submodules to latest upstream, add --remote
- git submodule update --init --recursive
Expand Down
104 changes: 103 additions & 1 deletion .ci/azure-pipelines-daily.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
trigger: none
pr: none
schedules:
- cron: '0 10 * * *'
displayName: Daily late night PST (GMT-8)
Expand All @@ -6,7 +8,7 @@ schedules:
- develop

jobs:
- job: Daily Linux
- job: Linux
strategy:
matrix:
all-tests:
Expand Down Expand Up @@ -39,3 +41,103 @@ jobs:
TEST_CONFIG: $[variables['test_config']]
workingDirectory: 'build'
displayName: 'Test HELICS'

- job: Windows
strategy:
matrix:
VS2022-64bit:
imageName: 'windows-2022'
langArch: 'x64'
vsArch: 'x64'
extraFlags: ''
pool:
vmImage: $(imageName)
variables:
BOOST_ROOT: $(Pipeline.Workspace)/ci-libs/boost
BOOST_URL: https://sourceforge.net/projects/boost/files/boost/1.74.0/boost_1_74_0.tar.bz2/download

steps:
# -----------------------
# Install dependencies
# -----------------------
- task: Cache@2
inputs:
path: $(BOOST_ROOT)
key: boost
cacheHitVar: BOOST_CACHE_RESTORED
displayName: Restore Boost cache
- bash: |
cd $(mktemp -d)
curl --location --output "download.tar.bz2" "$BOOST_URL"
tar xfj "download.tar.bz2"
mkdir -p "$BOOST_ROOT"
cp -r boost_*/* "$BOOST_ROOT"
condition: ne(variables.BOOST_CACHE_RESTORED, 'true')
displayName: Install Boost
- bash: choco install swig --yes --limit-output
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: Install swig

# -----------------------
# Configure HELICS
# -----------------------
- bash: |
echo "BOOST_ROOT=$BOOST_ROOT"
env
displayName: Show environment info
- task: CMake@1
inputs:
cmakeArgs: -A $(vsArch) -DHELICS_ENABLE_SWIG=ON -DHELICS_BUILD_CXX_SHARED_LIB=ON -DHELICS_ENABLE_PACKAGE_BUILD=ON -DHELICS_BUILD_TESTS=ON -DHELICS_BUILD_EXAMPLES=ON $(extraFlags) ..
displayName: 'Configure HELICS'
condition: eq( variables['Agent.OS'], 'Windows_NT' )

# - task: CMake@1
# inputs:
# cmakeArgs: -DHELICS_BUILD_JAVA_INTERFACE=ON .
# displayName: 'Configure Java interface'
# condition: eq( variables['langArch'], 'x64' )

# -----------------------
# Build HELICS
# -----------------------
- bash: cmake --build . --config Release
displayName: 'Build HELICS'
workingDirectory: build

# -----------------------
# Package HELICS
# -----------------------
- bash: |
cpack_dir="$(which cmake)"
cpack_dir="${cpack_dir%/cmake}"
"${cpack_dir}/cpack" -G "ZIP" -C Release -B "$PWD/installer-output"
displayName: 'Package HELICS'
workingDirectory: build
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/build/installer-output'
contents: '*.exe'
TargetFolder: '$(Build.ArtifactStagingDirectory)'

- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: installer

# -----------------------
# Test HELICS
# -----------------------
- bash: ctest --output-on-failure --timeout 480 -C Release -L "Continuous"
displayName: 'Test HELICS'
workingDirectory: build

# Packaging tests
- bash: ctest --output-on-failure --timeout 200 -C Release -L "PackagingFast"
displayName: 'Test HELICS packaging'
workingDirectory: build

- task: PublishBuildArtifacts@1
condition: failed()
inputs:
pathtoPublish: '$(Build.SourcesDirectory)/build'
artifactName: buildDirContents
16 changes: 10 additions & 6 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@ jobs:
ubuntuDefault:
containerImage: 'helics/buildenv:ubuntu18.04-default-builder'
test_config: 'ci'
use_mpi: 'true'
gcc11:
containerImage: 'helics/buildenv:gcc11-builder'
test_config: 'ci'
clang12:
containerImage: 'helics/buildenv:clang12-builder'
use_mpi: 'true'
clang13:
containerImage: 'helics/buildenv:clang13-builder'
test_config: 'ci'
use_mpi: ''
clang5:
containerImage: 'helics/buildenv:clang5-builder'
test_config: 'ci'
use_mpi: ''

pool:
vmImage: 'ubuntu-latest'
Expand All @@ -38,7 +42,7 @@ jobs:
MAKEFLAGS: '-j 4'
CMAKE_GENERATOR: 'Unix Makefiles'
USE_SWIG: 'true'
USE_MPI: 'true'
USE_MPI: $[variables['use_mpi']]
ZMQ_SUBPROJECT: $[variables['zmq_subproject']]
ZMQ_FORCE_SUBPROJECT: $[variables['zmq_subproject']]
displayName: 'Build HELICS'
Expand All @@ -57,8 +61,8 @@ jobs:
vmImage: 'macOS-latest'
XCode-oldest:
test_config: 'ci'
vmImage: 'macOS-10.14'
xcode_path: '/Applications/Xcode_10.1.app'
vmImage: 'macOS-10.15'
xcode_path: '/Applications/Xcode_10.3.app'
pool:
vmImage: $[ variables['vmImage'] ]
timeoutInMinutes: 90
Expand Down Expand Up @@ -125,7 +129,7 @@ jobs:
- bash: |
cd $(mktemp -d)
curl --location --output "download.tar.bz2" "$BOOST_URL"
tar xfvj "download.tar.bz2"
tar xfj "download.tar.bz2"
mkdir -p "$BOOST_ROOT"
cp -r boost_*/* "$BOOST_ROOT"
condition: ne(variables.BOOST_CACHE_RESTORED, 'true')
Expand Down
110 changes: 55 additions & 55 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,82 +1,82 @@
---
AccessModifierOffset: '-2'
AccessModifierOffset: "-2"
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: 'false'
AlignConsecutiveDeclarations: 'false'
AlignConsecutiveAssignments: "false"
AlignConsecutiveDeclarations: "false"
#AlignConsecutiveMacros: 'true'
AlignEscapedNewlines: Right
AlignOperands: 'false'
AlignTrailingComments: 'false'
AlignOperands: "false"
AlignTrailingComments: "false"
#AllowAllArgumentsOnNextLine: 'false'
#AllowAllConstructorInitializersOnNextLine: 'false'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowAllParametersOfDeclarationOnNextLine: "false"
AllowShortBlocksOnASingleLine: "false"
AllowShortCaseLabelsOnASingleLine: "false"
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: 'true'
AllowShortIfStatementsOnASingleLine: "true"
#AllowShortLambdasOnASingleLine: 'Inline'
AllowShortLoopsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: "false"
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: 'false'
AlwaysBreakTemplateDeclarations: 'true'
BinPackArguments: 'false'
BinPackParameters: 'false'
AlwaysBreakBeforeMultilineStrings: "false"
AlwaysBreakTemplateDeclarations: "true"
BinPackArguments: "false"
BinPackParameters: "false"
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
BeforeCatch: true
BreakBeforeTernaryOperators: 'false'
BreakBeforeTernaryOperators: "false"
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
BreakStringLiterals: 'false'
BreakStringLiterals: "false"
ColumnLimit: 100
CompactNamespaces: 'false'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'false'
ConstructorInitializerIndentWidth: '4'
ContinuationIndentWidth: '4'
Cpp11BracedListStyle: 'true'
DerivePointerAlignment: 'false'
DisableFormat: 'false'
FixNamespaceComments: 'true'
CompactNamespaces: "false"
ConstructorInitializerAllOnOneLineOrOnePerLine: "false"
ConstructorInitializerIndentWidth: "4"
ContinuationIndentWidth: "4"
Cpp11BracedListStyle: "true"
DerivePointerAlignment: "false"
DisableFormat: "false"
FixNamespaceComments: "true"
IncludeBlocks: Regroup
IndentCaseLabels: 'true'
IndentCaseLabels: "true"
IndentPPDirectives: AfterHash
IndentWidth: '4'
IndentWrappedFunctionNames: 'true'
IndentWidth: "4"
IndentWrappedFunctionNames: "true"
JavaScriptQuotes: Double
KeepEmptyLinesAtTheStartOfBlocks: 'false'
KeepEmptyLinesAtTheStartOfBlocks: "false"
Language: Cpp
MaxEmptyLinesToKeep: '1'
MaxEmptyLinesToKeep: "1"
NamespaceIndentation: Inner
ObjCSpaceAfterProperty: 'true'
ObjCSpaceBeforeProtocolList: 'true'
PenaltyBreakBeforeFirstCallParameter: '120'
PenaltyBreakComment: '300'
PenaltyBreakFirstLessLess: '30'
PenaltyBreakString: '1000'
PenaltyExcessCharacter: '1000000'
PenaltyReturnTypeOnItsOwnLine: '40'
ObjCSpaceAfterProperty: "true"
ObjCSpaceBeforeProtocolList: "true"
PenaltyBreakBeforeFirstCallParameter: "120"
PenaltyBreakComment: "300"
PenaltyBreakFirstLessLess: "30"
PenaltyBreakString: "1000"
PenaltyExcessCharacter: "1000000"
PenaltyReturnTypeOnItsOwnLine: "40"
PointerAlignment: Left
ReflowComments: 'true'
SortIncludes: 'true'
SortUsingDeclarations: 'true'
SpaceAfterCStyleCast: 'false'
ReflowComments: "true"
SortIncludes: "true"
SortUsingDeclarations: "true"
SpaceAfterCStyleCast: "false"
#SpaceAfterLogicalNot: 'false'
SpaceAfterTemplateKeyword: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeCpp11BracedList: 'false'
SpaceBeforeCtorInitializerColon: 'false'
SpaceBeforeInheritanceColon: 'false'
SpaceAfterTemplateKeyword: "false"
SpaceBeforeAssignmentOperators: "true"
SpaceBeforeCpp11BracedList: "false"
SpaceBeforeCtorInitializerColon: "false"
SpaceBeforeInheritanceColon: "false"
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: 'true'
SpaceInEmptyParentheses: 'false'
SpacesBeforeTrailingComments: '2'
SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
SpaceBeforeRangeBasedForLoopColon: "true"
SpaceInEmptyParentheses: "false"
SpacesBeforeTrailingComments: "2"
SpacesInAngles: "false"
SpacesInCStyleCastParentheses: "false"
SpacesInContainerLiterals: "false"
SpacesInParentheses: "false"
SpacesInSquareBrackets: "false"
Standard: Cpp11
TabWidth: '4'
TabWidth: "4"
UseTab: Never
Loading

0 comments on commit 39470e8

Please sign in to comment.