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
+ 28
30
Compare changes
  • Side-by-side
  • Inline
+ 28
30
@@ -10,17 +10,20 @@ default:
tags:
- mn2l
variables:
GIT_CLONE_PATH: /builds/$CI_PROJECT_PATH/FPM_BUILD/fpm # cannot work in /builds/$CI_PROJECT_PATH
stages:
- .pre
- build
- test
- bld_tst
- fmt_dox
waves:
build_test:
<<: *global_tag_def
stage: .pre
stage: bld_tst
script:
- printenv | sort
- cd ..
# get and build waves
- rm -rf waves
- wget -q https://gitlab.uliege.be/am-dept/waves/-/archive/master/waves-master.tar.bz2
- tar xf waves-master.tar.bz2
@@ -31,13 +34,27 @@ waves:
- cd build
- cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
- make -j $(nproc)
# build and test fpm
- cd ../../fpm
- mkdir build
- cd build
- cmake -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves -Wno-dev ..
- make -j $(nproc)
- ctest -j $(nproc) --output-on-failure #--verbose
- mv ${CI_PROJECT_DIR}/../waves/scripts/format_code.py . # ulgy way to keep a script we need later...
#timeout: 10 hours # will be available in 12.3
artifacts:
paths:
- build/
expire_in: 1 hour
format:
<<: *global_tag_def
stage: build
stage: fmt_dox
script:
- clang-format --version # we use clang-format-10 exclusively
- ${CI_PROJECT_DIR}/../waves/scripts/format_code.py
- ls build
- ./build/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:
@@ -45,24 +62,14 @@ format:
- patches/
expire_in: 1 day
when: on_failure
dependencies:
- build_test
allow_failure: true
build:
<<: *global_tag_def
stage: build
script:
- mkdir build
- cd build
- cmake -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves -Wno-dev ..
- make -j $(nproc)
artifacts:
paths:
- build/
expire_in: 1 hour
doxygen:
<<: *global_tag_def
stage: test
stage: fmt_dox
script:
- cd build
- make dox
@@ -71,14 +78,5 @@ doxygen:
- build/doxygen/
expire_in: 1 day
dependencies:
- build
- build_test
ctest:
<<: *global_tag_def
stage: test
script:
- cd build
- ctest -j $(nproc) --output-on-failure #--verbose
#timeout: 10 hours # will be available in 12.3
dependencies:
- build
Loading