Skip to content
Snippets Groups Projects
Commit 56c7be98 authored by Philipp Rüssmann's avatar Philipp Rüssmann
Browse files

Updated voronoi tests in gitlab-ci

parent 0f54cd5b
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,8 @@ stages:
# kkrsusc stages ...
# pkkprime stages ...
# voronoi stages ...
- build_voronoi
- run_voronoi
###############################################################################
......@@ -55,16 +57,16 @@ test:intel:
include:
### 1. build codes ###
- tests/gitlab-ci/build_kkrhost.yml
#- tests/gitlab-ci/build_kkrimp.yml
- tests/gitlab-ci/build_kkrimp.yml
#- tests/gitlab-ci/build_kkrsusc.yml
#- tests/gitlab-ci/build_pkkprime.yml
#- tests/gitlab-ci/build_voronoi.yml
- tests/gitlab-ci/build_voronoi.yml
### 2. run tests ###
- tests/gitlab-ci/run_kkrhost.yml
#- tests/gitlab-ci/run_kkrimp.yml
- tests/gitlab-ci/run_kkrimp.yml
#- tests/gitlab-ci/run_kkrsusc.yml
#- tests/gitlab-ci/run_pkkprime.yml
#- tests/gitlab-ci/run_voronoi.yml
- tests/gitlab-ci/run_voronoi.yml
### 3. verify results ###
- tests/gitlab-ci/verify_kkrhost.yml
#- tests/gitlab-ci/verify_kkrimp.yml
......
############################################################
#### gitlab-ci settings for voronoi code ####
############################################################
#
# docker image containing Developlement Tools and the current Intel compilers based on CentOS 7
image: iffregistry.fz-juelich.de/docker-images/centos7-intel-compilers
before_script:
# set +e prevents sourced scripts from aborting if single commands fail (GitLab CI sets `-e` by default)
- set +e && source compilervars.sh intel64 && set -e
# set environment variables to avoind stack size issue
- export OMP_NUM_THREADS=1
- export OMP_STACKSIZE=1g
- ulimit -s unlimited
stages:
- build
- run
# needs to be implemented:
# - verify
############################################################
build:intel:
stage: build
script:
- cd prog && make
artifacts:
paths:
- voronoi.exe
expire_in: 1 day
############################################################
run:intel:oldstyle:
stage: run
script:
- cd tests/
- cp -r test_inputs/test01_oldstyle test_run01
- cd test_run01 && ln -s ../../ElementDataBase . && ../../voronoi.exe | tee out_voronoi
artifacts:
paths:
- tests/test_run01
expire_in: 1 day
run:intel:newstyle:
stage: run
script:
- cd tests/
- cp -r test_inputs/test02_newstyle test_run02
- cd test_run02 && ln -s ../../ElementDataBase . && ../../voronoi.exe | tee out_voronoi
artifacts:
paths:
- tests/test_run02
expire_in: 1 day
############################################################
#verify:intel:
# stage: build
# script:
# - cd tests/
# - pytest -v
build_voronoi:intel:
stage: build_voronoi
script:
- cd prog && make
artifacts:
paths:
- voronoi.exe
expire_in: 1 day
run_voronoi:intel:oldstyle:
stage: run_voronoi
script:
- cd tests/voronoi
- cp -r test_inputs/test01_oldstyle test_run01
- cd test_run01 && ln -s ../../ElementDataBase . && ../../voronoi.exe | tee out_voronoi
artifacts:
paths:
- tests/test_run01
expire_in: 1 day
run_voronoi:intel:newstyle:
stage: run_voronoi
script:
- cd tests/voronoi
- cp -r test_inputs/test02_newstyle test_run02
- cd test_run02 && ln -s ../../ElementDataBase . && ../../voronoi.exe | tee out_voronoi
artifacts:
paths:
- tests/test_run02
expire_in: 1 day
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment