master
yml 94 lines 2.21 KB
Raw
1 check-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
15 check-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
26 check-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
37 check-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
50 check-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 ../ ${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 - target/doc
73
74 check-build-units:
75 extends: .base_job_template
76 stage: build
77 image: $CI_REGISTRY_IMAGE/qemu/debian:$QEMU_CI_CONTAINER_TAG
78 needs:
79 - job: amd64-debian-container
80 before_script:
81 - source scripts/ci/gitlab-ci-section
82 - section_start setup "Install Tools"
83 - apt install --assume-yes --no-install-recommends jq
84 - section_end setup
85 script:
86 - mkdir build
87 - cd build
88 - section_start configure "Running configure"
89 - ../configure
90 - cd ..
91 - section_end configure
92 - section_start analyse "Analyse"
93 - .gitlab-ci.d/check-units.py build/compile_commands.json
94 - section_end analyse