Browse Source

utils/checkpackagelib: run unit tests on GitLab CI

... so we can catch regressions on check-package.

Update to the new docker image that was pushed after the previous
commit.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Ricardo Martincoski 3 years ago
parent
commit
fcceee0b2e
3 changed files with 6 additions and 2 deletions
  1. 1 1
      .gitlab-ci.yml
  2. 4 0
      support/misc/gitlab-ci.yml.in
  3. 1 1
      support/scripts/generate-gitlab-ci-yml

+ 1 - 1
.gitlab-ci.yml

@@ -1,7 +1,7 @@
 # Configuration for Gitlab-CI.
 # Builds appear on https://gitlab.com/buildroot.org/buildroot/pipelines
 
-image: $CI_REGISTRY/buildroot.org/buildroot/base:20220105.2314
+image: $CI_REGISTRY/buildroot.org/buildroot/base:20220206.1324
 
 stages:
   - generate-gitlab-ci

+ 4 - 0
support/misc/gitlab-ci.yml.in

@@ -1,3 +1,7 @@
+.check-check-package_base:
+    script:
+        - python3 -m pytest -v utils/checkpackagelib/
+
 .check-DEVELOPERS_base:
     # get-developers should print just "No action specified"; if it prints
     # anything else, it's a parse error.

+ 1 - 1
support/scripts/generate-gitlab-ci-yml

@@ -26,7 +26,7 @@ gen_tests() {
     local do_basics do_defconfigs do_runtime do_testpkg
     local defconfigs_ext cfg tst
 
-    basics=( DEVELOPERS flake8 package )
+    basics=( check-package DEVELOPERS flake8 package )
 
     defconfigs=( $(cd configs; LC_ALL=C ls -1 *_defconfig) )