xref: /qemu/.gitlab-ci.d/static_checks.yml (revision d695918f)
1check-patch:
2  stage: build
3  image: python:3.10-alpine
4  needs: []
5  script:
6    - .gitlab-ci.d/check-patch.py
7  variables:
8    GIT_DEPTH: 1000
9  before_script:
10    - apk -U add git perl
11  rules:
12    - if: '$CI_PROJECT_NAMESPACE == "qemu-project"'
13      when: never
14    - when: on_success
15      allow_failure: true
16
17check-dco:
18  stage: build
19  image: python:3.10-alpine
20  needs: []
21  script: .gitlab-ci.d/check-dco.py
22  variables:
23    GIT_DEPTH: 1000
24  before_script:
25    - apk -U add git
26  rules:
27    - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
28      when: never
29    - when: on_success
30
31check-python-pipenv:
32  stage: test
33  image: $CI_REGISTRY_IMAGE/qemu/python:latest
34  script:
35    - make -C python check-pipenv
36  variables:
37    GIT_DEPTH: 1
38  needs:
39    job: python-container
40
41check-python-tox:
42  stage: test
43  image: $CI_REGISTRY_IMAGE/qemu/python:latest
44  script:
45    - make -C python check-tox
46  variables:
47    GIT_DEPTH: 1
48    QEMU_TOX_EXTRA_ARGS: --skip-missing-interpreters=false
49  needs:
50    job: python-container
51  rules:
52    - when: manual
53  allow_failure: true
54