1check-patch:
2  stage: build
3  image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
4  needs:
5    job: amd64-centos8-container
6  script:
7    - git config --local diff.renamelimit 0
8    - git config --local diff.renames True
9    - git config --local diff.algorithm histogram
10    - .gitlab-ci.d/check-patch.py
11  variables:
12    GIT_DEPTH: 1000
13  rules:
14    - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
15      when: never
16    - when: on_success
17      allow_failure: true
18
19check-dco:
20  stage: build
21  image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
22  needs:
23    job: amd64-centos8-container
24  script: .gitlab-ci.d/check-dco.py
25  variables:
26    GIT_DEPTH: 1000
27  rules:
28    - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
29      when: never
30    - when: on_success
31
32check-python-pipenv:
33  stage: test
34  image: $CI_REGISTRY_IMAGE/qemu/python:latest
35  script:
36    - make -C python venv-check
37  variables:
38    GIT_DEPTH: 1
39  needs:
40    job: python-container
41
42check-python-tox:
43  stage: test
44  image: $CI_REGISTRY_IMAGE/qemu/python:latest
45  script:
46    - make -C python check-tox
47  variables:
48    GIT_DEPTH: 1
49  needs:
50    job: python-container
51  allow_failure: true
52