Skip to content
Snippets Groups Projects
.gitlab-ci.yml 5.84 KiB
# yaml-language-server: $schema=gitlab-ci
# yaml-language-server: $format.enable=false

stages:
  - environment
  - compilers
  - concretize
  - install
  - deploy

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
      when: never
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_COMMIT_TAG =~ /^v[0-9].*$/

variables:
  TERM: ansi
  LANG: en_US.UTF-8

.parallel_definition:
  parallel:
    matrix:
      - environment: [helvetios]
        slurm_options: ["-c 36"]
        stack: ["pinot-noir"]
        app_image: ["registry.c4science.ch/scitas-stack/rhel9-kuma"]
        path_suffix: ['']

      - environment: [izar]
        slurm_options: ['-c 40 --gpus 2 -p izar']
        apptainer_options: ['--nv']
        stack: ["pinot-noir"]
        app_image: ["registry.c4science.ch/scitas-stack/rhel9-kuma"]
        path_suffix: ['izar/']

      - environment: [jed]
        slurm_options: ["-c 72 -p jed -q jed"]
        stack: ["pinot-noir"]
        app_image: ["registry.c4science.ch/scitas-stack/rhel9-kuma"]
        path_suffix: ['']

      - environment: [kuma-h100]
        slurm_options: ["-c 64 -q scitas"]
        stack: ["pinot-noir"]
        apptainer_options: ['--nv']
        app_image: ["registry.c4science.ch/scitas-stack/rhel9-kuma"]
        path_suffix: ['']

      - environment: [kuma-l40s]
        slurm_options: ["-c 64 -q scitas"]
        stack: ["pinot-noir"]
        apptainer_options: ['--nv']
        app_image: ["registry.c4science.ch/scitas-stack/rhel9-kuma"]
        path_suffix: ['']
  tags:
    - ${environment}
    - stack
  variables:
    environment: ${environment}
    CI_DATA_ST: "/scratch/${path_suffix}scitas-stack/ci"
    CI_DATA_LT: "/work/scitas-ge/scitas-stack/ci"
    COMMAND_OPTIONS_SBATCH: ${slurm_options}
    PYTHONUNBUFFERED: 1
  image: ${app_image}
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
.squashfs_var: