summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/csmock.yml
blob: a1cd9853b5351c3470c53dce90df0250a3895bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
test-commit-job-csmock:
  extends:
    - .dump_kernel_log
  tags:
    - libvirt
    - rhel9-csmock
  stage: test
  interruptible: true
  allow_failure: true
  variables:
    RUN_SSH_PLUGIN_TEST: "1"
  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