xref: /qemu/.gitlab-ci.d/static_checks.yml (revision 70ce076fa6dff60585c229a4b641b13e64bf03cf)
1check-patch:
2  extends: .base_job_template
3  stage: build
4  image: python:3.10-alpine
5  needs: []
6  script:
7    - .gitlab-ci.d/check-patch.py
8  variables:
9    GIT_DEPTH: 1000
10    QEMU_JOB_ONLY_FORKS: 1
11  before_script:
12    - apk -U add git perl
13  allow_failure: true
14
15check-dco:
16  extends: .base_job_template
17  stage: build
18  image: python:3.10-alpine
19  needs: []
20  script: .gitlab-ci.d/check-dco.py
21  variables:
22    GIT_DEPTH: 1000
23  before_script:
24    - apk -U add git
25
26check-python-minreqs:
27  extends: .base_job_template
28  stage: test
29  image: $CI_REGISTRY_IMAGE/qemu/python:$QEMU_CI_CONTAINER_TAG
30  script:
31    - make -C python check-minreqs
32  variables:
33    GIT_DEPTH: 1
34  needs:
35    job: python-container
36
37check-python-tox:
38  extends: .base_job_template
39  stage: test
40  image: $CI_REGISTRY_IMAGE/qemu/python:$QEMU_CI_CONTAINER_TAG
41  script:
42    - make -C python check-tox
43  variables:
44    GIT_DEPTH: 1
45    QEMU_TOX_EXTRA_ARGS: --skip-missing-interpreters=false
46    QEMU_JOB_OPTIONAL: 1
47  needs:
48    job: python-container
49
50check-rust-tools-nightly:
51  extends: .base_job_template
52  stage: test
53  image: $CI_REGISTRY_IMAGE/qemu/fedora-rust-nightly:$QEMU_CI_CONTAINER_TAG
54  script:
55    - source scripts/ci/gitlab-ci-section
56    - section_start test "Running Rust code checks"
57    - cd build
58    - pyvenv/bin/meson devenv -w ../rust ${CARGO-cargo} fmt --check
59    - make clippy
60    - make rustdoc
61    - section_end test
62  variables:
63    GIT_DEPTH: 1
64  allow_failure: true
65  needs:
66    - job: build-system-fedora-rust-nightly
67      artifacts: true
68  artifacts:
69    when: on_success
70    expire_in: 2 days
71    paths:
72      - rust/target/doc
73