-
Adrien Crovato authoredAdrien Crovato authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.gitlab-ci.yml 2.28 KiB
# gitlab-ci file for waves
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
- echo $(nproc)
- printenv | sort
.global_tag: &global_tag_def
tags:
- mn2l
# - warson # you can choose a set of runners here
stages:
- build
- test
format:
<<: *global_tag_def
stage: build
script:
- clang-format --version # we use clang-format-10 exclusively
- ./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:
paths:
- patches/
expire_in: 1 day
when: on_failure
allow_failure: true
build-no-tlnos:
<<: *global_tag_def
stage: build
script:
- rm -rf build workspace
- mkdir build
- cd build
- cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
- make -j 8
build:
<<: *global_tag_def
stage: build
script:
- rm -rf build workspace
- mkdir build
- cd build
- cmake -Wno-dev ..
- make -j 8
artifacts:
paths:
- build/
expire_in: 1 day
build-red:
<<: *global_tag_def
image: rboman/waves-py3-red:2020.3
stage: build
script:
- rm -rf build workspace
- mkdir build
- cd build
- cmake -Wno-dev ..
- make -j 8
artifacts:
paths: