Skip to content
Snippets Groups Projects
Commit 96f81d6f authored by Soeren Peters's avatar Soeren Peters
Browse files

Small clean ups in CI file. Use docker image with specific ubuntu version.

parent 338e876c
No related branches found
No related tags found
1 merge request!58Small clean ups in CI file. Use docker image with specific ubuntu version.
image: irmb/virtualfluids-python-deps:latest ###############################################################################
## VirtualFluids CI Pipeline ##
###############################################################################
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
stages: stages:
- build - build
...@@ -118,6 +121,8 @@ msvc_16: ...@@ -118,6 +121,8 @@ msvc_16:
gcc_9_python: gcc_9_python:
stage: build_python stage: build_python
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
needs: ["gcc_9"] needs: ["gcc_9"]
cache: cache:
...@@ -144,6 +149,8 @@ gcc_9_python: ...@@ -144,6 +149,8 @@ gcc_9_python:
build_singularity_image: build_singularity_image:
stage: container_upload stage: container_upload
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
needs: needs:
- gcc_9_python - gcc_9_python
...@@ -164,6 +171,8 @@ build_singularity_image: ...@@ -164,6 +171,8 @@ build_singularity_image:
gcc_9_unit_tests: gcc_9_unit_tests:
stage: test stage: test
image: irmb/virtualfluids-deps-ubuntu20.04:latest
needs: ["gcc_9"] needs: ["gcc_9"]
before_script: before_script:
...@@ -194,6 +203,8 @@ msvc_16_unit_tests: ...@@ -194,6 +203,8 @@ msvc_16_unit_tests:
gcc_9_python_bindings_test: gcc_9_python_bindings_test:
stage: test stage: test
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
needs: ["gcc_9_python"] needs: ["gcc_9_python"]
before_script: before_script:
...@@ -209,6 +220,8 @@ gcc_9_python_bindings_test: ...@@ -209,6 +220,8 @@ gcc_9_python_bindings_test:
gcc_9_python_slurm_test: gcc_9_python_slurm_test:
stage: test stage: test
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
needs: ["gcc_9_python"] needs: ["gcc_9_python"]
rules: rules:
...@@ -252,14 +265,14 @@ gcc_9_python_slurm_test: ...@@ -252,14 +265,14 @@ gcc_9_python_slurm_test:
nvidia_test: nvidia_test:
stage: benchmark stage: benchmark
image: nvidia/cuda:11.1.1-devel-ubuntu20.04
needs: [] needs: []
tags: tags:
- gpu - gpu
- linux - linux
image: nvidia/cuda:11.1.1-devel-ubuntu20.04
script: script:
- echo NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES} - echo NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES}
- nvidia-smi - nvidia-smi
...@@ -381,11 +394,11 @@ include_what_you_use_clang_10: ...@@ -381,11 +394,11 @@ include_what_you_use_clang_10:
cppcheck: cppcheck:
stage: analyze stage: analyze
image: irmb/virtualfluids-deps-ubuntu20.04
only: only:
- develop@irmb/VirtualFluids_dev - develop@irmb/VirtualFluids_dev
image: irmb/virtualfluids-deps-ubuntu20.04
needs: [] needs: []
before_script: before_script:
...@@ -409,11 +422,11 @@ cppcheck: ...@@ -409,11 +422,11 @@ cppcheck:
lizard: lizard:
stage: analyze stage: analyze
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
only: only:
- develop@irmb/VirtualFluids_dev - develop@irmb/VirtualFluids_dev
image: irmb/virtualfluids-python-deps-ubuntu20.04
needs: [] needs: []
before_script: before_script:
...@@ -437,11 +450,11 @@ lizard: ...@@ -437,11 +450,11 @@ lizard:
gcov_gcc_9: gcov_gcc_9:
stage: analyze stage: analyze
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
only: only:
- develop@irmb/VirtualFluids_dev - develop@irmb/VirtualFluids_dev
image: irmb/virtualfluids-python-deps-ubuntu20.04
needs: [] needs: []
before_script: before_script:
...@@ -481,11 +494,11 @@ gcov_gcc_9: ...@@ -481,11 +494,11 @@ gcov_gcc_9:
clang-tidy: clang-tidy:
stage: analyze stage: analyze
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
only: only:
- develop@irmb/VirtualFluids_dev - develop@irmb/VirtualFluids_dev
image: irmb/virtualfluids-python-deps-ubuntu20.04
needs: [] needs: []
allow_failure: true allow_failure: true
...@@ -516,13 +529,13 @@ clang-tidy: ...@@ -516,13 +529,13 @@ clang-tidy:
doxygen: doxygen:
stage: analyze stage: analyze
image: alpine
only: only:
- develop@irmb/VirtualFluids_dev - develop@irmb/VirtualFluids_dev
needs: [] needs: []
image: alpine
script: script:
- apk update && apk add doxygen - apk update && apk add doxygen
- doxygen docs/Doxyfile - doxygen docs/Doxyfile
...@@ -541,6 +554,8 @@ doxygen: ...@@ -541,6 +554,8 @@ doxygen:
.deploy_template: .deploy_template:
stage: deploy stage: deploy
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
before_script: before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- apt-get install -y rsync - apt-get install -y rsync
...@@ -601,6 +616,9 @@ vf_wheel_to_jupyterhub: ...@@ -601,6 +616,9 @@ vf_wheel_to_jupyterhub:
# This job only run on the development branch of the parent repository, not on forks! # This job only run on the development branch of the parent repository, not on forks!
sonar-scanner: sonar-scanner:
stage: deploy stage: deploy
image: irmb/virtualfluids-python-deps-ubuntu20.04:latest
tags: tags:
- linux - linux
...@@ -633,9 +651,12 @@ sonar-scanner: ...@@ -633,9 +651,12 @@ sonar-scanner:
## Release ## ## Release ##
############################################################################### ###############################################################################
create_release: create_release:
image: registry.gitlab.com/gitlab-org/release-cli:latest
stage: release stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
needs: ["build_singularity_image"] needs: ["build_singularity_image"]
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment