Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 45a56dd6 authored by PETIT Manuel's avatar PETIT Manuel
Browse files

Update CI

parent 730acd15
No related branches found
No related tags found
No related merge requests found
Pipeline #946197 failed
...@@ -13,7 +13,7 @@ conda_build: ...@@ -13,7 +13,7 @@ conda_build:
- large - large
script: script:
- mkdir conda-bld - mkdir conda-bld
- conda build . -c conda-forge --output-folder conda-bld/ - conda build conda/ -c conda-forge --output-folder conda-bld/
retry: retry:
max: 2 max: 2
when: runner_system_failure when: runner_system_failure
...@@ -21,9 +21,15 @@ conda_build: ...@@ -21,9 +21,15 @@ conda_build:
expire_in: 1 hour expire_in: 1 hour
paths: paths:
- conda-bld - conda-bld
only: rules:
- develop - if: $CI_COMMIT_BRANCH =~ /^release/
- master when: manual
allow_failure: true
- if: '$CI_COMMIT_BRANCH == "develop"'
when: manual
allow_failure: true
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
coverage: coverage:
...@@ -39,7 +45,7 @@ coverage: ...@@ -39,7 +45,7 @@ coverage:
- conda install -y -n base -c conda-forge conda-libmamba-solver - conda install -y -n base -c conda-forge conda-libmamba-solver
- conda config --set solver libmamba - conda config --set solver libmamba
# Create 'bvpy' conda environment & activate it: # Create 'bvpy' conda environment & activate it:
- conda env create -f conda/env_20240207.yaml -y - conda create -y -n bvpy -c conda-forge "python=3.9" "fenics=2019.1" "python-gmsh=4.11"
- source activate bvpy - source activate bvpy
# Install `bvpy` from sources: # Install `bvpy` from sources:
- python -m pip install -e . - python -m pip install -e .
...@@ -52,6 +58,7 @@ coverage: ...@@ -52,6 +58,7 @@ coverage:
only: only:
- develop - develop
- master - master
- /^release/
anaconda : anaconda :
stage: deploy stage: deploy
...@@ -70,9 +77,15 @@ anaconda : ...@@ -70,9 +77,15 @@ anaconda :
dependencies: dependencies:
- conda_build - conda_build
- coverage - coverage
only: rules:
- master - if: $CI_COMMIT_BRANCH =~ /^release/
- develop when: manual
allow_failure: true
- if: '$CI_COMMIT_BRANCH == "develop"'
when: manual
allow_failure: true
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
pages: pages:
stage: deploy stage: deploy
...@@ -87,7 +100,7 @@ pages: ...@@ -87,7 +100,7 @@ pages:
- conda install -y -n base -c conda-forge conda-libmamba-solver - conda install -y -n base -c conda-forge conda-libmamba-solver
- conda config --set solver libmamba - conda config --set solver libmamba
# Create 'bvpy' conda environment & activate it: # Create 'bvpy' conda environment & activate it:
- conda env create -f conda/env_20240207.yaml -y - conda create -y -n bvpy -c conda-forge "python=3.9" "fenics=2019.1" "python-gmsh=4.11"
- conda activate bvpy - conda activate bvpy
# Install `bvpy` package (from sources): # Install `bvpy` package (from sources):
- python -m pip install -e . - python -m pip install -e .
...@@ -104,10 +117,14 @@ pages: ...@@ -104,10 +117,14 @@ pages:
- public - public
dependencies: [] dependencies: []
rules: rules:
- if: '$CI_COMMIT_BRANCH == "develop"' - if: $CI_COMMIT_BRANCH =~ /^release/
when: manual when: manual
- if: '$CI_COMMIT_BRANCH == "master"' allow_failure: true
when: on_success - if: '$CI_COMMIT_BRANCH == "develop"'
when: manual
allow_failure: true
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
docker_build_deploy: docker_build_deploy:
image: docker:latest image: docker:latest
......
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