Skip to content

Commit

Permalink
Merge branch 'master' of github.com:MAteRialMOdelingToolbox/Marmot
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasneuner committed Sep 25, 2023
2 parents baa7685 + e2c2eda commit e72cd5a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
22 changes: 12 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,20 @@ variables:
LinearElastic $LinearElastic_Repo master
B4 $B4_Repo master
VonMises $VonMises_Repo master
format:
stage: test
image: condaforge/mambaforge:22.9.0-2
needs: []
script:
- mamba install -c conda-forge clang-format-15
- find . \( -name \*.cpp -o -name \*.h \) -print0 | xargs -0 -n 1 clang-format-15 --Werror -n --verbose
only:
- merge_requests

build and test:
stage: build
image: condaforge/mambaforge:latest
image: condaforge/mambaforge:22.9.0-2
script:

- function install_marmot_module(){
Expand Down Expand Up @@ -109,12 +119,4 @@ build and test:
- python setup.py build_ext -i
- python run_tests.py

format:
stage: test
image: nexus.lumiplan.com:8443/toolchain/clang-format:13
needs: []
script:
- find . \( -name \*.cpp -o -name \*.h \) -print0 | xargs -0 -n 1 clang-format-13 --Werror -n --verbose
only:
- merge_requests

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.0
rev: v15.0.7
hooks:
- id: clang-format
args: ["--dry-run", "--Werror" ]
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ endif()

if(NOT MATERIAL_MODULES OR MATERIAL_MODULES STREQUAL "all")
set (MATERIAL_MODULES
ADLinearElastic
ADVonMises
B4
Barodesy
BarodesyGradientVoid
Expand Down Expand Up @@ -160,6 +162,8 @@ if(NOT MATERIAL_MODULES OR MATERIAL_MODULES STREQUAL "all")
ViscoPlasticShotcreteModel
VonMises
PorousElastic
ADRedWildmoorSandstone
NDRedWildmoorSandstone
RedWildmoorSandstone
RockDamagePlasticity
RockDamagePlasticityNonLocal
Expand All @@ -186,6 +190,7 @@ if(NOT ELEMENT_MODULES OR ELEMENT_MODULES STREQUAL "all")
set(ELEMENT_MODULES
CosseratFiniteElement
DisplacementFiniteElement
ADDisplacementFiniteElement
DisplacementTLFiniteElement
DisplacementULFiniteElement
DisplacementEASFiniteElement
Expand Down

0 comments on commit e72cd5a

Please sign in to comment.