aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.d/static_checks.yml
blob: 7e685c6a65ef032c3c070f5397d462ab4ee978e1 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
check-patch:
  stage: build
  image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
  needs:
    job: amd64-centos8-container
  script:
    - git config --local diff.renamelimit 0
    - git config --local diff.renames True
    - git config --local diff.algorithm histogram
    - .gitlab-ci.d/check-patch.py
  variables:
    GIT_DEPTH: 1000
  rules:
    - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
      when: never
    - when: on_success
      allow_failure: true

check-dco:
  stage: build
  image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
  needs:
    job: amd64-centos8-container
  script: .gitlab-ci.d/check-dco.py
  variables:
    GIT_DEPTH: 1000
  rules:
    - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
      when: never
    - when: on_success

check-python-pipenv:
  stage: test
  image: $CI_REGISTRY_IMAGE/qemu/python:latest
  script:
    - make -C python venv-check
  variables:
    GIT_DEPTH: 1
  needs:
    job: python-container

check-python-tox:
  stage: test
  image: $CI_REGISTRY_IMAGE/qemu/python:latest
  script:
    - make -C python check-tox
  variables:
    GIT_DEPTH: 1
  needs:
    job: python-container
  allow_failure: true