mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
[gitlab-ci] Dependencies for build jobs, push to github immediately
This commit is contained in:
parent
331c0b9486
commit
5624d322d6
@ -1,9 +1,25 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- deploy
|
- test_ngsolve
|
||||||
- cleanup
|
- cleanup
|
||||||
|
|
||||||
|
push_github_sourceforge:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- linux
|
||||||
|
- docker
|
||||||
|
script:
|
||||||
|
- git remote add sourceforge ssh://mhochste@git.code.sf.net/p/netgen-mesher/git || true
|
||||||
|
- git remote add github git@github.com:NGSolve/netgen.git || true
|
||||||
|
- git remote update
|
||||||
|
- git checkout master
|
||||||
|
- git pull origin master
|
||||||
|
- git push sourceforge master
|
||||||
|
- git push github master
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Windows
|
# Windows
|
||||||
############################################
|
############################################
|
||||||
@ -52,6 +68,7 @@ test_win:
|
|||||||
- cd %NETGEN_BUILD_DIR%\netgen
|
- cd %NETGEN_BUILD_DIR%\netgen
|
||||||
- ctest -C Release -V --output-on-failure
|
- ctest -C Release -V --output-on-failure
|
||||||
- cd ..
|
- cd ..
|
||||||
|
needs: ["build_win"]
|
||||||
|
|
||||||
cleanup_win:
|
cleanup_win:
|
||||||
<<: *win
|
<<: *win
|
||||||
@ -64,6 +81,7 @@ cleanup_win:
|
|||||||
- rd /s /q %CI_DIR%
|
- rd /s /q %CI_DIR%
|
||||||
when: always
|
when: always
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
needs: ["test_win"]
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Ubuntu/Linux
|
# Ubuntu/Linux
|
||||||
@ -99,7 +117,7 @@ build_ubuntu_mpi:
|
|||||||
- docker commit `cat netgen_mpi_${CI_PIPELINE_ID}_${UBUNTU_VERSION}.id` netgen_mpi_${CI_PIPELINE_ID}_installed:${UBUNTU_VERSION}
|
- docker commit `cat netgen_mpi_${CI_PIPELINE_ID}_${UBUNTU_VERSION}.id` netgen_mpi_${CI_PIPELINE_ID}_installed:${UBUNTU_VERSION}
|
||||||
- rm netgen_mpi_${CI_PIPELINE_ID}_${UBUNTU_VERSION}.id
|
- rm netgen_mpi_${CI_PIPELINE_ID}_${UBUNTU_VERSION}.id
|
||||||
|
|
||||||
test_ubuntu:
|
test_ubuntu_debug:
|
||||||
<<: *ubuntu
|
<<: *ubuntu
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
@ -109,6 +127,7 @@ test_ubuntu:
|
|||||||
-e PYTHONPATH=/opt/netgen/lib/python3/dist-packages
|
-e PYTHONPATH=/opt/netgen/lib/python3/dist-packages
|
||||||
netgen_${CI_PIPELINE_ID}_installed:${UBUNTU_VERSION}
|
netgen_${CI_PIPELINE_ID}_installed:${UBUNTU_VERSION}
|
||||||
bash -c 'cd /root/build/netgen && make test_netgen ARGS="-V --output-on-failure"'
|
bash -c 'cd /root/build/netgen && make test_netgen ARGS="-V --output-on-failure"'
|
||||||
|
needs: ["build_ubuntu_debug"]
|
||||||
|
|
||||||
test_ubuntu_mpi:
|
test_ubuntu_mpi:
|
||||||
<<: *ubuntu
|
<<: *ubuntu
|
||||||
@ -120,11 +139,12 @@ test_ubuntu_mpi:
|
|||||||
-e PYTHONPATH=/opt/netgen/lib/python3/dist-packages
|
-e PYTHONPATH=/opt/netgen/lib/python3/dist-packages
|
||||||
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 --output-on-failure"'
|
bash -c 'cd /root/build/netgen && make test_netgen ARGS="-V --output-on-failure"'
|
||||||
|
needs: ["build_ubuntu_mpi"]
|
||||||
|
|
||||||
test_build_ngsolve:
|
test_build_ngsolve:
|
||||||
<<: *ubuntu
|
<<: *ubuntu
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
stage: deploy
|
stage: test_ngsolve
|
||||||
script:
|
script:
|
||||||
- >-
|
- >-
|
||||||
docker run
|
docker run
|
||||||
@ -208,6 +228,7 @@ test_mac:
|
|||||||
script:
|
script:
|
||||||
- cd $BUILD_DIR/netgen
|
- cd $BUILD_DIR/netgen
|
||||||
- ctest . -V --output-on-failure
|
- ctest . -V --output-on-failure
|
||||||
|
needs: ["build_mac"]
|
||||||
|
|
||||||
cleanup_mac:
|
cleanup_mac:
|
||||||
<<: *mac
|
<<: *mac
|
||||||
@ -216,23 +237,5 @@ cleanup_mac:
|
|||||||
- rm -rf $ROOT_DIR
|
- rm -rf $ROOT_DIR
|
||||||
when: always
|
when: always
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
needs: ["test_mac"]
|
||||||
|
|
||||||
############################################
|
|
||||||
# Deploy stage
|
|
||||||
############################################
|
|
||||||
|
|
||||||
deploy_sourceforge:
|
|
||||||
stage: deploy
|
|
||||||
tags:
|
|
||||||
- linux
|
|
||||||
- docker
|
|
||||||
script:
|
|
||||||
- git remote add sourceforge ssh://mhochste@git.code.sf.net/p/netgen-mesher/git || true
|
|
||||||
- git remote add github git@github.com:NGSolve/netgen.git || true
|
|
||||||
- git remote update
|
|
||||||
- git checkout master
|
|
||||||
- git pull origin master
|
|
||||||
- git push sourceforge master
|
|
||||||
- git push github master
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
@ -6,7 +6,7 @@ cmake \
|
|||||||
-DUSE_MKL=ON \
|
-DUSE_MKL=ON \
|
||||||
-DUSE_CCACHE=ON \
|
-DUSE_CCACHE=ON \
|
||||||
-DNETGEN_DIR=/opt/netgen \
|
-DNETGEN_DIR=/opt/netgen \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=DEBUG \
|
||||||
~/src/ngsolve
|
~/src/ngsolve
|
||||||
make -j12
|
make -j12
|
||||||
make install
|
make install
|
||||||
|
Loading…
Reference in New Issue
Block a user