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

Merge branch 'add_projects_to_ci' into 'master'

Add example projects to CI

See merge request !16
parents 22ad8297 27cdecce
Branches
Tags
1 merge request!16Add example projects to CI
Pipeline #58283 passed
stages: stages:
- init - init
- test_projects
- build_mpich_gcc8 - build_mpich_gcc8
- build_openmpi_gcc8 - build_openmpi_gcc8
- build_mpich_gcc9 - build_mpich_gcc9
...@@ -483,6 +484,36 @@ build-openmpi-complete-gcc10: ...@@ -483,6 +484,36 @@ 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
test-project-cmake-subdir:
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_subdir.sh
allow_failure: false
test-project-makefile:
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_makefile.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" cp -rL "$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" cp -rL "$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" cp -rL "$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