[gitlab-ci] Test compatibility with NGSolve

This commit is contained in:
Matthias Hochsteger 2019-04-25 12:04:11 +02:00
parent 0525b8b61f
commit 4486558ba8
2 changed files with 28 additions and 0 deletions

View File

@ -119,6 +119,22 @@ test_ubuntu_mpi:
netgen_mpi_${CI_PIPELINE_ID}_installed:${UBUNTU_VERSION}
bash -c 'cd /root/build/netgen && make test_netgen ARGS="-V"'
test_build_ngsolve:
<<: *ubuntu
allow_failure: true
stage: test
script:
- >-
docker run
-e NETGENDIR=/opt/netgen/bin
-e PYTHONPATH=/opt/netgen/lib/python3/dist-packages
-e MKLROOT=/opt/intel/mkl
-v /opt/intel:/opt/intel
-e CCACHE_DIR=/ccache
-v /mnt/ccache:/ccache
netgen_${CI_PIPELINE_ID}_installed:${UBUNTU_VERSION}
bash -c 'cd /root/src/netgen/tests/ && ./build_ngsolve.sh'
# cpp guideline checks
test_guidelines:
<<: *ubuntu

12
tests/build_ngsolve.sh Executable file
View File

@ -0,0 +1,12 @@
cd ~/src
git clone https://github.com/NGSolve/ngsolve.git
mkdir -p ~/build/ngsolve
cd ~/build/ngsolve
cmake \
-DUSE_MKL=ON \
-DUSE_CCACHE=ON \
-DNETGEN_DIR=/opt/netgen \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
~/src/ngsolve
make -j12
make install