mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
[gitlab-ci] Test compatibility with NGSolve
This commit is contained in:
parent
0525b8b61f
commit
4486558ba8
@ -119,6 +119,22 @@ test_ubuntu_mpi:
|
|||||||
netgen_mpi_${CI_PIPELINE_ID}_installed:${UBUNTU_VERSION}
|
netgen_mpi_${CI_PIPELINE_ID}_installed:${UBUNTU_VERSION}
|
||||||
bash -c 'cd /root/build/netgen && make test_netgen ARGS="-V"'
|
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
|
# cpp guideline checks
|
||||||
test_guidelines:
|
test_guidelines:
|
||||||
<<: *ubuntu
|
<<: *ubuntu
|
||||||
|
12
tests/build_ngsolve.sh
Executable file
12
tests/build_ngsolve.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user