mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
mpi-builds on gitlab
This commit is contained in:
parent
d6f1cf2bda
commit
f43532f69e
@ -87,6 +87,16 @@ build_ubuntu:
|
||||
- docker commit `cat netgen_${CI_BUILD_REF_NAME}_${UBUNTU_VERSION}.id` netgen_${CI_BUILD_REF_NAME}_installed:${UBUNTU_VERSION}
|
||||
- rm netgen_${CI_BUILD_REF_NAME}_${UBUNTU_VERSION}.id
|
||||
|
||||
build_ubuntu_mpi:
|
||||
<<: *ubuntu
|
||||
stage: build
|
||||
script:
|
||||
- docker build -t netgen_${CI_BUILD_REF_NAME}:${UBUNTU_VERSION} -f tests/dockerfile .
|
||||
- rm -f netgen_${CI_BUILD_REF_NAME}_$UBUNTU_VERSION.id_mpi
|
||||
- docker run --cidfile netgen_${CI_BUILD_REF_NAME}_${UBUNTU_VERSION}.id -e CCACHE_DIR=/ccache -v /mnt/ccache:/ccache netgen_${CI_BUILD_REF_NAME}:${UBUNTU_VERSION} bash /root/src/netgen/tests/build_mpi.sh
|
||||
- docker commit `cat netgen_${CI_BUILD_REF_NAME}_${UBUNTU_VERSION}.id` netgen_${CI_BUILD_REF_NAME}_installed:${UBUNTU_VERSION}
|
||||
- rm netgen_${CI_BUILD_REF_NAME}_${UBUNTU_VERSION}.id
|
||||
|
||||
test_ubuntu:
|
||||
<<: *ubuntu
|
||||
stage: test
|
||||
@ -98,6 +108,17 @@ test_ubuntu:
|
||||
netgen_${CI_BUILD_REF_NAME}_installed:${UBUNTU_VERSION}
|
||||
bash -c 'cd /root/build/netgen && make test_netgen ARGS="-V"'
|
||||
|
||||
test_ubuntu_mpi:
|
||||
<<: *ubuntu
|
||||
stage: test
|
||||
script:
|
||||
- >-
|
||||
docker run
|
||||
-e NETGENDIR=/opt/netgen/bin
|
||||
-e PYTHONPATH=/opt/netgen/lib/python3/dist-packages
|
||||
netgen_${CI_BUILD_REF_NAME}_installed:${UBUNTU_VERSION}_mpi
|
||||
bash -c 'cd /root/build/netgen && make test_netgen ARGS="-V"'
|
||||
|
||||
# cpp guideline checks
|
||||
test_guidelines:
|
||||
<<: *ubuntu
|
||||
@ -125,6 +146,7 @@ cleanup_ubuntu:
|
||||
when: always
|
||||
allow_failure: true
|
||||
|
||||
|
||||
############################################
|
||||
# MacOSX
|
||||
############################################
|
||||
|
6
tests/build_mpi.sh
Normal file
6
tests/build_mpi.sh
Normal file
@ -0,0 +1,6 @@
|
||||
cd
|
||||
mkdir -p build/netgen
|
||||
cd build/netgen
|
||||
cmake ../../src/netgen -DUSE_CCACHE=ON -DUSE_MPI=ON
|
||||
make -j12
|
||||
make install
|
Loading…
Reference in New Issue
Block a user