Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
particle_methods
hysop
Commits
ab162ebc
Commit
ab162ebc
authored
6 months ago
by
Franck Pérignon
Browse files
Options
Downloads
Patches
Plain Diff
CI fix
parent
45805662
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#194491
failed
6 months ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+26
-24
26 additions, 24 deletions
.gitlab-ci.yml
ci/ci-templates.yml
+48
-0
48 additions, 0 deletions
ci/ci-templates.yml
with
74 additions
and
24 deletions
.gitlab-ci.yml
+
26
−
24
View file @
ab162ebc
...
...
@@ -19,7 +19,7 @@
##
# 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
:
-
ci/ci-templates.yml
...
...
@@ -49,7 +49,7 @@ ubuntu:gpu-nvidia:docker-build:
extends
:
.docker-build
tags
:
-
lmap
-
c
pu
-
g
pu
rules
:
-
if
:
$CI_COMMIT_MESSAGE =~ /\[docker-build\]/
-
if
:
$CI_COMMIT_TAG
...
...
@@ -77,7 +77,7 @@ ubuntu:gpu-nvidia-user:docker-build:
extends
:
.docker-build
tags
:
-
lmap
-
c
pu
-
g
pu
rules
:
-
if
:
$CI_COMMIT_MESSAGE =~ /\[docker-build\]/
-
if
:
$CI_COMMIT_TAG
...
...
@@ -130,8 +130,9 @@ examples:ci-cpu-intel:
docker:hysop:cpu-intel
:
variables
:
DOCKER_TARGET
:
hysop_cpu_intel
IMAGE_NAME
:
hysop_cpu_intel
RESULT_NAME
:
$CI_REGISTRY/particle_methods/hysop_cpu_intel
DOCKER_TARGET
:
hysop_cpu_intel
extends
:
-
.hysop-docker-hysop
-
.lmap-cpu
...
...
@@ -144,7 +145,7 @@ config:ci-cpu-intel-user:
variables
:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_cpu_intel_user:latest
extends
:
-
.hysop-configure
-
.hysop-configure
-venv
-
.lmap-cpu
needs
:
-
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:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_cpu_intel_user:latest
needs
:
[
"
config:ci-cpu-intel-user"
]
extends
:
-
.hysop-build
-
.hysop-build
-venv
-
.lmap-cpu
install:ci-cpu-intel-user
:
...
...
@@ -163,7 +164,7 @@ install:ci-cpu-intel-user:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_cpu_intel_user:latest
needs
:
[
"
build:ci-cpu-intel-user"
]
extends
:
-
.hysop-install
-
.hysop-install
-venv
-
.lmap-cpu
test:ci-cpu-intel-user
:
...
...
@@ -171,7 +172,7 @@ test:ci-cpu-intel-user:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_cpu_intel_user:latest
needs
:
[
"
install:ci-cpu-intel-user"
]
extends
:
-
.hysop-test
-
.hysop-test
-venv
-
.lmap-cpu
examples:ci-cpu-intel-user
:
...
...
@@ -179,7 +180,7 @@ examples:ci-cpu-intel-user:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_cpu_intel_user:latest
needs
:
[
"
install:ci-cpu-intel-user"
]
extends
:
-
.hysop-examples
-
.hysop-examples
-venv
-
.lmap-cpu
# Jobs to create docker images with a full hysop install, ready to use as a notebook
...
...
@@ -188,7 +189,7 @@ binder:mamba:cpu:
variables
:
IMAGE_NAME
:
lab-mamba
RESULT_NAME
:
$CI_REGISTRY/particle_methods/hysop_binder/hysopbinderlab
SICONOS_
DOCKER_TARGET
:
binderlab
DOCKER_TARGET
:
binderlab
extends
:
-
.hysop-docker-hysop
needs
:
[
"
install:ci-cpu-intel-user"
]
...
...
@@ -198,7 +199,7 @@ jupyterlab:mamba:cpu:
variables
:
IMAGE_NAME
:
lab-mamba
RESULT_NAME
:
$CI_REGISTRY/particle_methods/hysop/hysoplab
SICONOS_
DOCKER_TARGET
:
jupylab
DOCKER_TARGET
:
jupylab
extends
:
-
.hysop-docker-hysop
needs
:
[
"
binder:mamba:cpu"
]
...
...
@@ -210,9 +211,9 @@ config:ci-gpu-nvidia-user:
variables
:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_gpu_nvidia_user
extends
:
-
.hysop-configure
-
.
lma
p-
c
pu
needs
:
-
.hysop-configure
-venv
-
.
hyso
p-
g
pu
needs
:
-
job
:
ubuntu:gpu-nvidia-user:docker-build
# wait for docker image if docker build is on ...
optional
:
true
...
...
@@ -221,32 +222,32 @@ build:ci-gpu-nvidia-user:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_gpu_nvidia_user
needs
:
[
"
config:ci-gpu-nvidia-user"
]
extends
:
-
.hysop-build
-
.
lma
p-
c
pu
-
.hysop-build
-venv
-
.
hyso
p-
g
pu
install:ci-gpu-nvidia-user
:
variables
:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_gpu_nvidia_user
needs
:
[
"
build:ci-gpu-nvidia-user"
]
extends
:
-
.hysop-install
-
.
lma
p-
c
pu
-
.hysop-install
-venv
-
.
hyso
p-
g
pu
test:ci-gpu-nvidia-user
:
variables
:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_gpu_nvidia_user
needs
:
[
"
install:ci-gpu-nvidia-user"
]
extends
:
-
.hysop-test
-
.
lma
p-
c
pu
-
.hysop-test
-venv
-
.
hyso
p-
g
pu
examples:ci-gpu-nvidia-user
:
variables
:
IMAGE_NAME
:
$HYSOP_REGISTRY/ci_gpu_nvidia_user
needs
:
[
"
install:ci-gpu-nvidia-user"
]
extends
:
-
.hysop-examples
-
.
lma
p-
c
pu
-
.hysop-examples
-venv
-
.
hyso
p-
g
pu
...
...
@@ -298,9 +299,10 @@ examples:ci-gpu-nvidia:
-
.hysop-gpu
docker:hysop:gpu-nvidia
:
variables
:
DOCKER_TARGET
:
hysop_gpu_nvidia
variables
:
IMAGE_NAME
:
hysop_gpu_nvidia
RESULT_NAME
:
$CI_REGISTRY/particle_methods/hysop/hysop_gpu_nvidia
DOCKER_TARGET
:
hysop_gpu_nvidia
extends
:
-
.hysop-docker-hysop
-
.lmap-cpu
...
...
This diff is collapsed.
Click to expand it.
ci/ci-templates.yml
+
48
−
0
View file @
ab162ebc
...
...
@@ -245,6 +245,54 @@ workflow:
-
export PYTHONPATH=`echo $PYTHONPATH_0`
-
"
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
.hysop-docker-hysop
:
image
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment