[kvm-unit-tests PATCH 4/6] gitlab-ci: Move check-kerneldoc test out of the centos test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This creates a new lightweight (alpine) kerneldoc check, based
on the QEMU static checking jobs.

The aim is to decouple the test build and run jobs on different
platforms from the static checker images, so one can be adjusted
without affecting the other.

Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx>
---
 .gitlab-ci.yml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2d048b11d..0f72cefe7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -305,7 +305,7 @@ build-centos8:
  - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
  - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
  - yum update -y
- - yum install -y make python39 qemu-kvm gcc
+ - yum install -y make qemu-kvm gcc
  script:
  - mkdir build
  - cd build
@@ -343,8 +343,6 @@ build-centos8:
       | tee results.txt
  - if grep -q FAIL results.txt ; then exit 1 ; fi
  - grep -q PASS results.txt && ! grep -q FAIL results.txt
- - make -s check-kerneldoc 2>&1 | tee docwarnings.txt
- - test -z `cat docwarnings.txt`
 
 # Cirrus-CI provides containers with macOS and Linux with KVM enabled,
 # so we can test some scenarios there that are not possible with the
@@ -418,3 +416,16 @@ s390x-kvm:
  only:
   variables:
    - $S390X_Z15_RUNNER_AVAILABLE
+
+check-kerneldoc:
+  extends: .intree_template
+  stage: build
+  image: python:3.10-alpine
+  needs: []
+  script:
+    - ./configure --arch=x86_64
+    - make -s check-kerneldoc 2>&1 | tee docwarnings.txt
+    - test -z `cat docwarnings.txt`
+  before_script:
+    - apk -U add bash make perl gcc
+  allow_failure: true
-- 
2.45.2





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux