Skip to content
Snippets Groups Projects
Commit be3f2756 authored by Stephan Schulz's avatar Stephan Schulz
Browse files

integrate projects into CI

parent 21f7d2ed
Branches
No related tags found
1 merge request!16Add example projects to CI
Pipeline #58265 failed
...@@ -6,6 +6,7 @@ stages: ...@@ -6,6 +6,7 @@ stages:
- build_openmpi_gcc9 - build_openmpi_gcc9
- build_mpich_gcc10 - build_mpich_gcc10
- build_openmpi_gcc10 - build_openmpi_gcc10
- test_projects
- release - release
before_script: before_script:
...@@ -483,6 +484,16 @@ build-openmpi-complete-gcc10: ...@@ -483,6 +484,16 @@ build-openmpi-complete-gcc10:
- badges/ - badges/
allow_failure: false allow_failure: false
test-project-cmake:
stage: test_projects
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc10-full:latest
tags:
- public-docker
when: always
script:
- ./ci/test_project_cmake.sh
allow_failure: false
release: release:
stage: release stage: release
only: only:
......
...@@ -40,9 +40,8 @@ function find_ALL { ...@@ -40,9 +40,8 @@ function find_ALL {
} }
function find_VTK { function find_VTK {
# todo(s.schulz): This must be adapted for docker images! Right now this #VTK_DIR="$CI_SCRIPT_PATH/../../vtk_bin" #local machine
# is only correct on my own machine. VTK_DIR=/usr/local
VTK_DIR="$CI_SCRIPT_PATH/../../vtk_bin"
} }
# push badge to tmp-branch and exit # push badge to tmp-branch and exit
......
...@@ -9,7 +9,7 @@ find_VTK #sets VTK_DIR ...@@ -9,7 +9,7 @@ find_VTK #sets VTK_DIR
TEMP=$(mktemp -d) TEMP=$(mktemp -d)
rsync -aLK ../example/CMakeProject/ "$TEMP" rsync -aLK "$CI_SCRIPT_PATH/../example/CMakeProject/" "$TEMP"
cd "$TEMP" cd "$TEMP"
sed -i\ sed -i\
-e "/^ALL_ROOT_DIR=/c\\\nALL_ROOT_DIR=\"$ALL_ROOT_DIR\"\n"\ -e "/^ALL_ROOT_DIR=/c\\\nALL_ROOT_DIR=\"$ALL_ROOT_DIR\"\n"\
......
...@@ -9,7 +9,7 @@ find_VTK #sets VTK_DIR ...@@ -9,7 +9,7 @@ find_VTK #sets VTK_DIR
TEMP=$(mktemp -d) TEMP=$(mktemp -d)
rsync -aLK ../example/CMakeProjectSubdir/ "$TEMP" rsync -aLK "$CI_SCRIPT_PATH/../example/CMakeProjectSubdir/" "$TEMP"
cd "$TEMP" cd "$TEMP"
ln -s "$ALL_ROOT_DIR" all ln -s "$ALL_ROOT_DIR" all
ln -s "$VTK_DIR" vtk_bin ln -s "$VTK_DIR" vtk_bin
......
...@@ -9,7 +9,7 @@ find_VTK #sets VTK_DIR ...@@ -9,7 +9,7 @@ find_VTK #sets VTK_DIR
TEMP=$(mktemp -d) TEMP=$(mktemp -d)
rsync -aLK ../example/MakefileProject/ "$TEMP" rsync -aLK "$CI_SCRIPT_PATH/../example/MakefileProject/" "$TEMP"
cd "$TEMP" cd "$TEMP"
sed -i\ sed -i\
-e "/^ALL_SOURCE=/c\\\nALL_SOURCE=\"$ALL_ROOT_DIR\"\n"\ -e "/^ALL_SOURCE=/c\\\nALL_SOURCE=\"$ALL_ROOT_DIR\"\n"\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment