Skip to content
Snippets Groups Projects

Version 0.1.0 (setup)

Merged Adrien Crovato requested to merge adri into master
Compare and Show latest version
1 file
+ 16
4
Compare changes
  • Side-by-side
  • Inline
+ 16
4
@@ -10,6 +10,9 @@ default:
tags:
- mn2l
variables:
GIT_CLONE_PATH: /builds/$CI_PROJECT_PATH/FPM_BUILD/fpm # cannot work in /builds/$CI_PROJECT_PATH
stages:
- .pre
- build
@@ -31,16 +34,19 @@ waves:
- cd build
- cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
- make -j $(nproc)
- ls ${CI_PROJECT_DIR}/..
artifacts:
paths:
- ../waves/
expire_in: 1 hour
format:
<<: *global_tag_def
stage: build
script:
- ls ${CI_PROJECT_DIR}/..
- clang-format --version # we use clang-format-10 exclusively
- ls ${CI_PROJECT_DIR}/../waves/scripts
- ./builds/am-dept/waves/scripts/format_code.py
- ./../waves/scripts/format_code.py
- .${CI_PROJECT_DIR}/../waves/scripts/format_code.py
- ${CI_PROJECT_DIR}/../waves/scripts/format_code.py
- mkdir -p patches
- if git diff --patch --exit-code > patches/clang-format.patch; then echo "Clang format changed nothing"; else echo "Clang format found changes to make!"; false; fi
artifacts:
@@ -48,12 +54,15 @@ format:
- patches/
expire_in: 1 day
when: on_failure
dependencies:
- waves
allow_failure: true
build:
<<: *global_tag_def
stage: build
script:
- ls ${CI_PROJECT_DIR}/..
- mkdir build
- cd build
- cmake -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves -Wno-dev ..
@@ -62,6 +71,8 @@ build:
paths:
- build/
expire_in: 1 hour
dependencies:
- waves
doxygen:
<<: *global_tag_def
@@ -80,6 +91,7 @@ ctest:
<<: *global_tag_def
stage: test
script:
- ls ${CI_PROJECT_DIR}/..
- cd build
- ctest -j $(nproc) --output-on-failure #--verbose
#timeout: 10 hours # will be available in 12.3
Loading