Skip to content
Snippets Groups Projects
Select Git revision
  • ac8ab0074a741fc3451fa3ca5bc7157f8dc624bf
  • master default protected
  • 6.3.3
  • data-explorer-5
  • 6.3.2
  • 6.3.1
  • 6.3.0
  • 6.2.2
  • 6.2.1
  • 6.2.0
  • 6.2.0-rc1
  • 6.1.0
  • 6.1.0-rc1
  • 6.0.8-insitu
  • 6.0.8
  • 6.0.7
  • 6.0.6
  • tes-works-again
  • 6.0.5
  • ode-pre-review
  • 6.0.4
  • 6.0.3
22 results

.gitlab-ci.yml

Blame
  • Forked from ogs / ogs
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    .gitlab-ci.yml 3.46 KiB
    stages:
      - preparation
      - build
      - test
      - check
      - release
      - package
    
    variables:
      # Build config
      BUILD_TYPE: Release
      BUILD_TESTS: "true"
      BUILD_CTEST: "true"
      CTEST_ARGS: "" # If not empty supply arguments to select tests
      CTEST_TIMEOUT: "" # in minutes
      CPU_TARGET: ivybridge # envinf1 has oldest cpu
      ARTIFACTS_PAGES_URL: https://$CI_PROJECT_ROOT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts
      PIPELINE_NAME: "Default pipeline name"
    
    workflow:
      name: "$PIPELINE_NAME"
      rules:
        # Disable CI for non-MR user-scoped pipelines
        - if: '$CI_MERGE_REQUEST_IID == null && $CI_PROJECT_PATH != "ogs/ogs"'
          when: never
        - if: "$CI_MERGE_REQUEST_LABELS =~ /.*(workflow::paused|ci::skip).*/"
          when: never
        - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::web only.*/
          variables:
            PIPELINE_NAME: "web only MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
            BUILD_TESTS: "false"
            CTEST_INCLUDE_REGEX: "nb-"
        - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::linux only.*/
          variables:
            PIPELINE_NAME: "linux only MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
        - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::mac only.*/
          variables:
            PIPELINE_NAME: "mac only MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
        - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::win only.*/
          variables:
            PIPELINE_NAME: "win only MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
        - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::guix only.*/
          variables:
            PIPELINE_NAME: "guix only MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
        - if: $CI_MERGE_REQUEST_IID # merge requests
          variables:
            PIPELINE_NAME: "MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
        - if: $CI_COMMIT_TAG # tags, ogs/ogs repo only
        - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_PATH == "ogs/ogs"' # master, ogs/ogs repo only
          variables:
            PIPELINE_NAME: "master pipeline"
        - if: '$CI_COMMIT_BRANCH =~ /^v[0-9]\.[0-9]\.[0-9]/ && $CI_PROJECT_PATH == "ogs/ogs"' # release branches, e.g. v6.x.x
          variables:
            PIPELINE_NAME: "bugfix branch $CI_COMMIT_BRANCH pipeline"
    
    include:
      - local: "scripts/ci/extends/*.yml"
      - local: "/scripts/ci/pipelines/regular.yml"
        rules:
          - if: $CI_PIPELINE_SOURCE != "schedule" && $CI_MERGE_REQUEST_LABELS !~ /.*ci::\w* only.*/
      - local: "/scripts/ci/pipelines/web.yml"
        rules:
          - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::web only?($|,)/
      - local: "/scripts/ci/pipelines/web-fast.yml"
        rules:
          - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::web only \(fast.*/
      - local: "/scripts/ci/pipelines/scheduled.yml"
        rules:
          - if: '$CI_PIPELINE_SOURCE == "schedule"'
      - local: "/scripts/ci/pipelines/linux.yml"