]> git.proxmox.com Git - mirror_qemu.git/blobdiff - .gitlab-ci.d/static_checks.yml
Merge tag 'migration-staging-pull-request' of https://gitlab.com/peterx/qemu into...
[mirror_qemu.git] / .gitlab-ci.d / static_checks.yml
index 91247a6f67074150dd06b508380dfdc35a47006c..ad9f426a52f50d11e314e1285660f1e8999effe1 100644 (file)
@@ -1,26 +1,48 @@
 check-patch:
+  extends: .base_job_template
   stage: build
-  image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
-  needs:
-    job: amd64-centos8-container
-  script: .gitlab-ci.d/check-patch.py
+  image: python:3.10-alpine
+  needs: []
+  script:
+    - .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
+    QEMU_JOB_ONLY_FORKS: 1
+  before_script:
+    - apk -U add git perl
+  allow_failure: true
 
 check-dco:
+  extends: .base_job_template
   stage: build
-  image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
-  needs:
-    job: amd64-centos8-container
+  image: python:3.10-alpine
+  needs: []
   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
+  before_script:
+    - apk -U add git
+
+check-python-minreqs:
+  extends: .base_job_template
+  stage: test
+  image: $CI_REGISTRY_IMAGE/qemu/python:$QEMU_CI_CONTAINER_TAG
+  script:
+    - make -C python check-minreqs
+  variables:
+    GIT_DEPTH: 1
+  needs:
+    job: python-container
+
+check-python-tox:
+  extends: .base_job_template
+  stage: test
+  image: $CI_REGISTRY_IMAGE/qemu/python:$QEMU_CI_CONTAINER_TAG
+  script:
+    - make -C python check-tox
+  variables:
+    GIT_DEPTH: 1
+    QEMU_TOX_EXTRA_ARGS: --skip-missing-interpreters=false
+    QEMU_JOB_OPTIONAL: 1
+  needs:
+    job: python-container