summaryrefslogtreecommitdiff
path: root/ci/gitlab/sanity-checks.yml
blob: f843c7f70879cb54d08dde8b8f9d86aac70f86c7 (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
26
# THIS FILE WAS AUTO-GENERATED
#
#  $ lcitool manifest ci/manifest.yml
#
# https://gitlab.com/libvirt/libvirt-ci


check-dco:
  stage: sanity_checks
  needs: []
  image: registry.gitlab.com/libvirt/libvirt-ci/check-dco:master
  script:
    - /check-dco "$RUN_UPSTREAM_NAMESPACE"
  rules:
    # upstream+forks: Run pipelines on MR
    - if: '$CI_PIPELINE_SOURCE =~ "merge_request_event"'
      when: on_success

    # forks: pushes to branches with pipeline requested
    - if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH && $RUN_PIPELINE'
      when: on_success

    # upstream+forks: that's all folks
    - when: never
  variables:
    GIT_DEPTH: 1000