mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
gitlab-ci.yml: fix pipeline for ubuntu:latest (noble)
Since we are using ubuntu:latest, and noble was released, some tests are failing. shellcheck needs python3 to run, which was possibly installed by default in previous ubuntu images and is no longer the case. Ignore dist-packages python files during our coverage tests. Fixes: https://gitlab.com/apparmor/apparmor/-/issues/388 Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
parent
dc3bd62c74
commit
731880def8
@ -112,7 +112,7 @@ shellcheck:
|
||||
extends:
|
||||
- .ubuntu-before_script
|
||||
script:
|
||||
- apt-get install --no-install-recommends -y file shellcheck xmlstarlet
|
||||
- apt-get install --no-install-recommends -y python3-minimal file shellcheck xmlstarlet
|
||||
- shellcheck --version
|
||||
- './tests/bin/shellcheck-tree --format=checkstyle
|
||||
| xmlstarlet tr tests/checkstyle2junit.xslt
|
||||
|
@ -61,7 +61,7 @@ ifndef USE_SYSTEM
|
||||
fi
|
||||
endif
|
||||
|
||||
COVERAGE_OMIT=test-*.py,common_test.py
|
||||
COVERAGE_OMIT=test-*.py,common_test.py,*/dist-packages/*
|
||||
ifneq ($(COVERAGE_OUT), )
|
||||
HTML_COVR_ARGS=-d $(COVERAGE_OUT)
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user