diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 36b360f8b..1d502a875 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ --- image: ubuntu:latest before_script: - - export DEBIAN_FRONTEND=noninteractive && apt-get update -qq && apt-get install --no-install-recommends -y build-essential apache2-dev autoconf automake bison dejagnu flex libpam-dev libtool perl liblocale-gettext-perl pkg-config python-all-dev python3-all-dev pyflakes3 ruby-dev swig lsb-release python3-coverage python3-notify2 python3-psutil zlib1g-dev + - export DEBIAN_FRONTEND=noninteractive && apt-get update -qq && apt-get install --no-install-recommends -y build-essential apache2-dev autoconf automake bison dejagnu flex libjs-jquery libjs-jquery-throttle-debounce libjs-jquery-isonscreen libjs-jquery-tablesorter libpam-dev libtool perl liblocale-gettext-perl pkg-config python-all-dev python3-all-dev pyflakes3 ruby-dev swig lsb-release python3-coverage python3-notify2 python3-psutil zlib1g-dev - lsb_release -a - uname -a @@ -46,6 +46,9 @@ test-all: - make -C changehat/mod_apparmor check - make -C profiles check-parser - make -C profiles check-abstractions.d + artifacts: + paths: + - utils/test/htmlcov/ # Disabled due to aa-logprof dependency on /sbin/apparmor_parser existing # - make -C profiles check-profiles diff --git a/utils/test/Makefile b/utils/test/Makefile index 58796da16..90354aa50 100644 --- a/utils/test/Makefile +++ b/utils/test/Makefile @@ -96,6 +96,7 @@ coverage-report: .coverage coverage-regression: .coverage $(PYTHON) -m coverage report --omit="$(COVERAGE_OMIT)" > coverage-report.txt + $(PYTHON) -m coverage html --omit="$(COVERAGE_OMIT)" $(HTML_COVR_ARGS) cat coverage-report.txt @echo 'Checking for coverage changes...' @if grep -vE ' 100%$$|TOTAL|$(INCOMPLETE_COVERAGE)' coverage-report.txt |grep '%$$' ; then echo "ERROR: Coverage regression - the files listed above are expected to have 100% test coverage"; exit 1; fi