<commit_before># Templates for ci jobs - test cdash
# It defines workflow rules, templates to create docker images, to configure, build siconos and so on.
include:
   - ci_gitlab/gitlab-ci-siconos-templates.yml

# --- First, build docker images that contains all the required dependencies to build siconos ---
# This step is optional and run only when the commit message starts with "[docker-build]"
debian-buster:docker-build:
  variables:
    IMAGE_NAME: debian-buster
  extends: .docker-build

ubuntu20.4-light:docker-build:
  variables:
    IMAGE_NAME: ubuntu20.04-light
  extends: .docker-build

ubuntu20.4:docker-build:
  variables:
    IMAGE_NAME: ubuntu20.04
  extends: .docker-build
  stage: docker-build-layer2
  needs: ["ubuntu20.4-light:docker-build"]

opensuse-leap-15.0:docker-build:
  variables:
    IMAGE_NAME: opensuse-leap-15.0
  extends: .docker-build

centos-7:docker-build:
  variables:
    IMAGE_NAME: centos-7
  extends: .docker-build

fedora33:docker-build:
  variables:
    IMAGE_NAME: fedora-33
  extends: .docker-build

ubuntu20.4-doc:docker-build:
  variables:
    IMAGE_NAME: ubuntu20.04-doc
  extends: .docker-build
  stage: docker-build-layer3
  needs: ["ubuntu20.4:docker-build"]

# A specific image, that will be used to install siconos,
# get examples and provide some notebooks to
# run siconos software.
jupyter-notebook:docker-build:
  variables:
    IMAGE_NAME: jupyterlab
  extends: .docker-build
  stage: docker-build


# Manual jobs, used to create docker images.
docker-manual-img:
  extends: .docker-rules
  stage: docker-build-layer2
  trigger:
    include:
      - ci_gitlab/docker-manual.yml


# -------------- Configure, build and test Siconos --------------
ubuntu18.04:full:
      variables:
        IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu18.04
        cdash_submit: 1
        user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
      extends:
        - .siconos-full
        - .full-ci-rules
     
debian-buster:configure:
  variables:
     IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster
     cdash_submit: 1
     user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-configure
    - .full-ci-rules

debian-buster:build:
  variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-build
    - .full-ci-rules
  needs: ["debian-buster:configure"]

debian-buster:test:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
    needs: ["debian-buster:build"]
    extends:
      - .siconos-test
      - .full-ci-rules

ubuntu20.04-fclib:configure:
   variables:
     IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
     cdash_submit: 1
     user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_with_fclib.cmake
   extends:
    - .siconos-configure
    - .full-ci-rules

ubuntu20.04-fclib:build:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
    cdash_submit: 1
    user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_with_fclib.cmake
  extends:
    - .siconos-build
    - .full-ci-rules
  needs: ["ubuntu20.04-fclib:configure"]

ubuntu20.04-fclib:test:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_with_fclib.cmake
    needs: ["ubuntu20.04-fclib:build"]
    extends:
      - .siconos-test
      - .full-ci-rules

ubuntu20.04:configure:
   variables:
     IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
     cdash_submit: 1
     user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
   extends:
    - .siconos-configure

ubuntu20.04:build:
  variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-build
  needs: ["ubuntu20.04:configure"]

ubuntu20.04:test:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
    needs: ["ubuntu20.04:build"]
    extends:
      - .siconos-test
 
fedora-33:configure:
  variables:
     IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/fedora-33
     cdash_submit: 1
     user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-configure
    - .full-ci-rules

fedora-33:build:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/fedora-33
    cdash_submit: 1
    user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-build
    - .full-ci-rules
  needs: ["fedora-33:configure"]

fedora-33:test:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/fedora-33
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
    needs: ["fedora-33:build"]
    extends:
    - .siconos-test
    - .full-ci-rules

jupyterlab:full:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/jupyterlab
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_notebook.cmake
    extends:
      - .siconos-full
      - .full-ci-rules

# Generate sico install

ubuntu20:install:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
    siconos_docker_name: siconos-$CI_COMMIT_REF_NAME-ubuntu20
  extends: .siconos-install
  needs: ["ubuntu20.04:build"]

debian-buster:install:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster
  needs: ["jupyterlab:full"]

jupyterlab:install:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/jupyterlab
  extends: .siconos-jupyterlab-install
  needs: ["jupyterlab:full"]

# --- Creates a new pipeline to build documentation
# Trigger : manual.
# When the job is activated (manual trigger through the web interface),
# it starts a new pipeline, i.e. includes jobs declared in docs/build-doc.yml
generate-doc:
  stage: configure
  trigger:
    include:
      - docs/build-doc.yml
  when: manual

# -- Jobs on demand --
# Triggered through the interface
# Build siconos with oce component
siconos-oce:
  stage: configure
  trigger:
    include:
      - ci_gitlab/siconos-with-oce.yml
  when: manual
<commit_msg>[docker-build] add CI to build a jupyterlab docker image with siconos ready to use and including siconos-tutorials notebooks<commit_after># Templates for ci jobs - test cdash
# It defines workflow rules, templates to create docker images, to configure, build siconos and so on.
include:
   - ci_gitlab/gitlab-ci-siconos-templates.yml

# --- First, build docker images that contains all the required dependencies to build siconos ---
# This step is optional and run only when the commit message starts with "[docker-build]"
debian-buster:docker-build:
  variables:
    IMAGE_NAME: debian-buster
  extends: .docker-build

ubuntu20.4-light:docker-build:
  variables:
    IMAGE_NAME: ubuntu20.04-light
  extends: .docker-build

ubuntu20.4:docker-build:
  variables:
    IMAGE_NAME: ubuntu20.04
  extends: .docker-build
  stage: docker-build-layer2
  needs: ["ubuntu20.4-light:docker-build"]

opensuse-leap-15.0:docker-build:
  variables:
    IMAGE_NAME: opensuse-leap-15.0
  extends: .docker-build

centos-7:docker-build:
  variables:
    IMAGE_NAME: centos-7
  extends: .docker-build

fedora33:docker-build:
  variables:
    IMAGE_NAME: fedora-33
  extends: .docker-build

ubuntu20.4-doc:docker-build:
  variables:
    IMAGE_NAME: ubuntu20.04-doc
  extends: .docker-build
  stage: docker-build-layer3
  needs: ["ubuntu20.4:docker-build"]

# A specific image, that will be used to install siconos,
# get examples and provide some notebooks to
# run siconos software.
jupyter-notebook:docker-build:
  variables:
    IMAGE_NAME: jupyterlab
  extends: .docker-build
  stage: docker-build


# Manual jobs, used to create docker images.
docker-manual-img:
  extends: .docker-rules
  stage: docker-build-layer2
  trigger:
    include:
      - ci_gitlab/docker-manual.yml


# -------------- Configure, build and test Siconos --------------
ubuntu18.04:full:
      variables:
        IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu18.04
        cdash_submit: 1
        user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
      extends:
        - .siconos-full
        - .full-ci-rules
     
debian-buster:configure:
  variables:
     IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster
     cdash_submit: 1
     user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-configure
    - .full-ci-rules

debian-buster:build:
  variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-build
    - .full-ci-rules
  needs: ["debian-buster:configure"]

debian-buster:test:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
    needs: ["debian-buster:build"]
    extends:
      - .siconos-test
      - .full-ci-rules

ubuntu20.04-fclib:configure:
   variables:
     IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
     cdash_submit: 1
     user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_with_fclib.cmake
   extends:
    - .siconos-configure
    - .full-ci-rules

ubuntu20.04-fclib:build:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
    cdash_submit: 1
    user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_with_fclib.cmake
  extends:
    - .siconos-build
    - .full-ci-rules
  needs: ["ubuntu20.04-fclib:configure"]

ubuntu20.04-fclib:test:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_with_fclib.cmake
    needs: ["ubuntu20.04-fclib:build"]
    extends:
      - .siconos-test
      - .full-ci-rules

ubuntu20.04:configure:
   variables:
     IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
     cdash_submit: 1
     user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
   extends:
    - .siconos-configure

ubuntu20.04:build:
  variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-build
  needs: ["ubuntu20.04:configure"]

ubuntu20.04:test:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
    needs: ["ubuntu20.04:build"]
    extends:
      - .siconos-test
 
fedora-33:configure:
  variables:
     IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/fedora-33
     cdash_submit: 1
     user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-configure
    - .full-ci-rules

fedora-33:build:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/fedora-33
    cdash_submit: 1
    user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
  extends:
    - .siconos-build
    - .full-ci-rules
  needs: ["fedora-33:configure"]

fedora-33:test:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/fedora-33
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_default.cmake
    needs: ["fedora-33:build"]
    extends:
    - .siconos-test
    - .full-ci-rules

jupyterlab:full:
    variables:
      IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/jupyterlab
      cdash_submit: 1
      user_file: $CI_PROJECT_DIR/$siconos_confs/siconos_notebook.cmake
    extends:
      - .siconos-full
      - .full-ci-rules

# Generate sico install

ubuntu20:install:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/ubuntu20.04
    siconos_docker_name: siconos-$CI_COMMIT_REF_NAME-ubuntu20
  extends: .siconos-install
  needs: ["ubuntu20.04:build"]

debian-buster:install:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster
    siconos_docker_name: siconos-$CI_COMMIT_REF_NAME-debian-buster
  extends:
    - .siconos-install
    - .full-ci-rules
  needs: ["debian-buster:build"]


jupyterlab:install:
  variables:
    IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/jupyterlab
    siconos_docker_name: siconoslab
  extends:
    - .siconos-jupyterlab-install
    - .full-ci-rules
  needs: ["jupyterlab:full"]


# --- Creates a new pipeline to build documentation
# Trigger : manual.
# When the job is activated (manual trigger through the web interface),
# it starts a new pipeline, i.e. includes jobs declared in docs/build-doc.yml
generate-doc:
  stage: configure
  trigger:
    include:
      - docs/build-doc.yml
  when: manual

# -- Jobs on demand --
# Triggered through the interface
# Build siconos with oce component
siconos-oce:
  stage: configure
  trigger:
    include:
      - ci_gitlab/siconos-with-oce.yml
  when: manual

{'fraction_non_alphanumeric': 0.10639606396063961, 'fraction_numerical': 0.023985239852398525, 'mean_word_length': 3.3248005319148937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '53870', 'n_tokens_mistral': 5233, 'n_tokens_neox': 4792, 'n_words': 831}