diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7806f832..7d1aaf30 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/tests/build_ngsolve.sh b/tests/build_ngsolve.sh new file mode 100755 index 00000000..ca5b9dac --- /dev/null +++ b/tests/build_ngsolve.sh @@ -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