Skip to content
Snippets Groups Projects
Commit ab162ebc authored by Franck Pérignon's avatar Franck Pérignon
Browse files

CI fix

parent 45805662
No related branches found
No related tags found
No related merge requests found
Pipeline #194491 failed
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
## ##
# Templates for ci jobs - test cdash # Templates for ci jobs - test cdash
# It defines workflow rules, templates to create docker images, to configure, build siconos and so on. # It defines workflow rules, templates to create docker images, to configure, build hysop and so on.
include: include:
- ci/ci-templates.yml - ci/ci-templates.yml
...@@ -49,7 +49,7 @@ ubuntu:gpu-nvidia:docker-build: ...@@ -49,7 +49,7 @@ ubuntu:gpu-nvidia:docker-build:
extends: .docker-build extends: .docker-build
tags: tags:
- lmap - lmap
- cpu - gpu
rules: rules:
- if: $CI_COMMIT_MESSAGE =~ /\[docker-build\]/ - if: $CI_COMMIT_MESSAGE =~ /\[docker-build\]/
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
...@@ -77,7 +77,7 @@ ubuntu:gpu-nvidia-user:docker-build: ...@@ -77,7 +77,7 @@ ubuntu:gpu-nvidia-user:docker-build:
extends: .docker-build extends: .docker-build
tags: tags:
- lmap - lmap
- cpu - gpu
rules: rules:
- if: $CI_COMMIT_MESSAGE =~ /\[docker-build\]/ - if: $CI_COMMIT_MESSAGE =~ /\[docker-build\]/
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
...@@ -130,8 +130,9 @@ examples:ci-cpu-intel: ...@@ -130,8 +130,9 @@ examples:ci-cpu-intel:
docker:hysop:cpu-intel: docker:hysop:cpu-intel:
variables: variables:
DOCKER_TARGET: hysop_cpu_intel
IMAGE_NAME: hysop_cpu_intel IMAGE_NAME: hysop_cpu_intel
RESULT_NAME: $CI_REGISTRY/particle_methods/hysop_cpu_intel
DOCKER_TARGET: hysop_cpu_intel
extends: extends:
- .hysop-docker-hysop - .hysop-docker-hysop
- .lmap-cpu - .lmap-cpu
...@@ -144,7 +145,7 @@ config:ci-cpu-intel-user: ...@@ -144,7 +145,7 @@ config:ci-cpu-intel-user:
variables: variables:
IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest
extends: extends:
- .hysop-configure - .hysop-configure-venv
- .lmap-cpu - .lmap-cpu
needs: needs:
- job: ubuntu:cpu-intel-user:docker-build # wait for docker image if docker build is on ... - job: ubuntu:cpu-intel-user:docker-build # wait for docker image if docker build is on ...
...@@ -155,7 +156,7 @@ build:ci-cpu-intel-user: ...@@ -155,7 +156,7 @@ build:ci-cpu-intel-user:
IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest
needs: ["config:ci-cpu-intel-user"] needs: ["config:ci-cpu-intel-user"]
extends: extends:
- .hysop-build - .hysop-build-venv
- .lmap-cpu - .lmap-cpu
install:ci-cpu-intel-user: install:ci-cpu-intel-user:
...@@ -163,7 +164,7 @@ install:ci-cpu-intel-user: ...@@ -163,7 +164,7 @@ install:ci-cpu-intel-user:
IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest
needs: ["build:ci-cpu-intel-user"] needs: ["build:ci-cpu-intel-user"]
extends: extends:
- .hysop-install - .hysop-install-venv
- .lmap-cpu - .lmap-cpu
test:ci-cpu-intel-user: test:ci-cpu-intel-user:
...@@ -171,7 +172,7 @@ test:ci-cpu-intel-user: ...@@ -171,7 +172,7 @@ test:ci-cpu-intel-user:
IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest
needs: ["install:ci-cpu-intel-user"] needs: ["install:ci-cpu-intel-user"]
extends: extends:
- .hysop-test - .hysop-test-venv
- .lmap-cpu - .lmap-cpu
examples:ci-cpu-intel-user: examples:ci-cpu-intel-user:
...@@ -179,7 +180,7 @@ examples:ci-cpu-intel-user: ...@@ -179,7 +180,7 @@ examples:ci-cpu-intel-user:
IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest IMAGE_NAME: $HYSOP_REGISTRY/ci_cpu_intel_user:latest
needs: ["install:ci-cpu-intel-user"] needs: ["install:ci-cpu-intel-user"]
extends: extends:
- .hysop-examples - .hysop-examples-venv
- .lmap-cpu - .lmap-cpu
# Jobs to create docker images with a full hysop install, ready to use as a notebook # Jobs to create docker images with a full hysop install, ready to use as a notebook
...@@ -188,7 +189,7 @@ binder:mamba:cpu: ...@@ -188,7 +189,7 @@ binder:mamba:cpu:
variables: variables:
IMAGE_NAME: lab-mamba IMAGE_NAME: lab-mamba
RESULT_NAME: $CI_REGISTRY/particle_methods/hysop_binder/hysopbinderlab RESULT_NAME: $CI_REGISTRY/particle_methods/hysop_binder/hysopbinderlab
SICONOS_DOCKER_TARGET: binderlab DOCKER_TARGET: binderlab
extends: extends:
- .hysop-docker-hysop - .hysop-docker-hysop
needs: ["install:ci-cpu-intel-user"] needs: ["install:ci-cpu-intel-user"]
...@@ -198,7 +199,7 @@ jupyterlab:mamba:cpu: ...@@ -198,7 +199,7 @@ jupyterlab:mamba:cpu:
variables: variables:
IMAGE_NAME: lab-mamba IMAGE_NAME: lab-mamba
RESULT_NAME: $CI_REGISTRY/particle_methods/hysop/hysoplab RESULT_NAME: $CI_REGISTRY/particle_methods/hysop/hysoplab
SICONOS_DOCKER_TARGET: jupylab DOCKER_TARGET: jupylab
extends: extends:
- .hysop-docker-hysop - .hysop-docker-hysop
needs: ["binder:mamba:cpu"] needs: ["binder:mamba:cpu"]
...@@ -210,9 +211,9 @@ config:ci-gpu-nvidia-user: ...@@ -210,9 +211,9 @@ config:ci-gpu-nvidia-user:
variables: variables:
IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user
extends: extends:
- .hysop-configure - .hysop-configure-venv
- .lmap-cpu - .hysop-gpu
needs: needs:
- job: ubuntu:gpu-nvidia-user:docker-build # wait for docker image if docker build is on ... - job: ubuntu:gpu-nvidia-user:docker-build # wait for docker image if docker build is on ...
optional: true optional: true
...@@ -221,32 +222,32 @@ build:ci-gpu-nvidia-user: ...@@ -221,32 +222,32 @@ build:ci-gpu-nvidia-user:
IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user
needs: ["config:ci-gpu-nvidia-user"] needs: ["config:ci-gpu-nvidia-user"]
extends: extends:
- .hysop-build - .hysop-build-venv
- .lmap-cpu - .hysop-gpu
install:ci-gpu-nvidia-user: install:ci-gpu-nvidia-user:
variables: variables:
IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user
needs: ["build:ci-gpu-nvidia-user"] needs: ["build:ci-gpu-nvidia-user"]
extends: extends:
- .hysop-install - .hysop-install-venv
- .lmap-cpu - .hysop-gpu
test:ci-gpu-nvidia-user: test:ci-gpu-nvidia-user:
variables: variables:
IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user
needs: ["install:ci-gpu-nvidia-user"] needs: ["install:ci-gpu-nvidia-user"]
extends: extends:
- .hysop-test - .hysop-test-venv
- .lmap-cpu - .hysop-gpu
examples:ci-gpu-nvidia-user: examples:ci-gpu-nvidia-user:
variables: variables:
IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user IMAGE_NAME: $HYSOP_REGISTRY/ci_gpu_nvidia_user
needs: ["install:ci-gpu-nvidia-user"] needs: ["install:ci-gpu-nvidia-user"]
extends: extends:
- .hysop-examples - .hysop-examples-venv
- .lmap-cpu - .hysop-gpu
...@@ -298,9 +299,10 @@ examples:ci-gpu-nvidia: ...@@ -298,9 +299,10 @@ examples:ci-gpu-nvidia:
- .hysop-gpu - .hysop-gpu
docker:hysop:gpu-nvidia: docker:hysop:gpu-nvidia:
variables: variables:
DOCKER_TARGET: hysop_gpu_nvidia
IMAGE_NAME: hysop_gpu_nvidia IMAGE_NAME: hysop_gpu_nvidia
RESULT_NAME: $CI_REGISTRY/particle_methods/hysop/hysop_gpu_nvidia
DOCKER_TARGET: hysop_gpu_nvidia
extends: extends:
- .hysop-docker-hysop - .hysop-docker-hysop
- .lmap-cpu - .lmap-cpu
......
...@@ -245,6 +245,54 @@ workflow: ...@@ -245,6 +245,54 @@ workflow:
- export PYTHONPATH=`echo $PYTHONPATH_0` - export PYTHONPATH=`echo $PYTHONPATH_0`
- "bash ci/scripts/run_examples.sh" - "bash ci/scripts/run_examples.sh"
# Same as above, but with a default install in python env
.hysop-base-venv:
image: $IMAGE_NAME
artifacts:
expire_in: 1 week
paths:
- $BUILD_DIR
.hysop-configure-venv:
extends: .hysop-base-venv
stage: configure
script:
- env
- "bash ci/scripts/version.sh"
- meson setup $BUILD_DIR $CI_PROJECT_DIR
.hysop-build-venv:
extends: .hysop-base-venv
stage: build
script:
- meson compile -C $BUILD_DIR
.hysop-install-venv:
extends: .hysop-base-venv
stage: install
script:
- meson install -C $BUILD_DIR
- python3 -c "import hysop; print(hysop); print(hysop.__file__)"
- python3 -c "from hysop import f2hysop; print(f2hysop); print(f2hysop.__file__)"
.hysop-test-venv:
extends: .hysop-base-venv
stage: test
script:
- python3 -c "import hysop; print(hysop); print(hysop.__file__)"
- python3 -c "from hysop import f2hysop; print(f2hysop); print(f2hysop.__file__)"
- MESON_TESTTHREADS=1 meson test -C $BUILD_DIR
artifacts:
when: on_failure
paths:
- $BUILD_DIR
.hysop-examples-venv:
extends: .hysop-base-venv
stage: test
script:
- "bash ci/scripts/run_examples.sh"
# A template to installs Hysop and generates a docker image with a full/uptodate install of Hysop # A template to installs Hysop and generates a docker image with a full/uptodate install of Hysop
.hysop-docker-hysop: .hysop-docker-hysop:
image: image:
......
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