summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/csmock.yml
blob: 76c390ee12d36537808c493a8b6fa71ca40317ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
test-commit-job-csmock:
  extends:
    - .fail_if_coredump_generated
  tags:
    - libvirt
    - cryptsetup-rhel-9
  stage: test
  interruptible: true
  allow_failure: true
  variables:
    DISTRO: cryptsetup-rhel-9
    RUN_SSH_PLUGIN_TEST: "1"
    DISK_SIZE: 20
  rules:
    - if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
      when: never
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /v2\..\.x$/ || $CI_PIPELINE_SOURCE == "merge_request_event"
  script:
    - sudo /opt/run-csmock.sh
  artifacts:
    # Upload artifacts when a crash makes the job fail.
    when: always
    paths:
      - cryptsetup-csmock-results.tar.xz
      - cryptsetup-csmock-results