Skip to content
Snippets Groups Projects

Version 0.1.0 (setup)

Merged Adrien Crovato requested to merge adri into master
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
.gitlab-ci.yml 0 → 100644
+ 90
0
# gitlab-ci file for fpm
default:
image: rboman/waves-py3:2020.3
before_script:
- source /opt/intel/mkl/bin/mklvars.sh intel64
- source /opt/intel/tbb/bin/tbbvars.sh intel64
.global_tag: &global_tag_def
tags:
- mn2l
variables:
GIT_CLONE_PATH: /builds/$CI_PROJECT_PATH/FPM_BUILD/fpm # cannot work in /builds/$CI_PROJECT_PATH
stages:
- build
# - fmt_dox
build:
<<: *global_tag_def
stage: build
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
- rm waves-master.tar.bz2
- mv waves-master waves
- cd waves
- mkdir build
- cd build
- cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
- make -j $(nproc)
# check code format
- clang-format --version # we use clang-format-10 exclusively
- cd ../../fpm
- ${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
# build fpm
- mkdir build
- cd build
- cmake -Wno-dev .. # -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves (handled by default)
- make -j $(nproc)
# build documentation
- make dox
# test
- 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/
- patches/
expire_in: 1 day
#format:
# <<: *global_tag_def
# stage: fmt_dox
# script:
# - clang-format --version # we use clang-format-10 exclusively
# - ./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:
# paths:
# - patches/
# expire_in: 1 day
# when: on_failure
# dependencies:
# - build_test
# allow_failure: true
#
#
#doxygen:
# <<: *global_tag_def
# stage: fmt_dox
# script:
# - cd build
# - make dox
# artifacts:
# paths:
# - build/doxygen/
# expire_in: 1 day
# dependencies:
# - build_test
Loading