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
+ 25
31
Compare changes
  • Side-by-side
  • Inline
+ 25
31
@@ -10,17 +10,19 @@ 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
- build # only 1 stage to avoid exporting artifacts in parent dir (not permitted)
waves:
build_test:
<<: *global_tag_def
stage: .pre
stage: build
script:
- printenv | sort
- cd ..
# get waves and build
- 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,15 +33,26 @@ waves:
- cd build
- cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
- make -j $(nproc)
# build 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
#timeout: 10 hours # will be available in 12.3
artifacts:
paths:
- build/
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
- .${CI_PROJECT_DIR}/../waves/scripts/format_code.py
- ./builds/am-dept/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:
@@ -47,24 +60,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: build
script:
- cd build
- make dox
@@ -73,14 +76,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