From d5c71fffaa28a84078cd997f89bde29659ba6ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Mon, 2 Sep 2024 09:12:07 +0200 Subject: [PATCH] fix unit tests --- .gitlab-ci.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 98a9b8f..0291fd2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,13 +9,44 @@ stress_test: alias: rabbitmq before_script: - python setup.py install + - coverage run --append -m compile_definitions script: - - coverage run -m stress_tests + - coverage run --append -m stress_tests - COOLAMQP_FORCE_SELECT_LISTENER=1 coverage run --append -m stress_tests + after_script: + - mv .coverage .coverage.stress + artifacts: + paths: + - ".coverage.stress" + +unittest: + stage: test + services: + - name: rabbitmq:3-management + alias: rabbitmq + before_script: + - coverage run --append -m compile_definitions + script: + - coverage run --append -m nose2 -vv + after_script: + - mv .coverage .coverage.units + artifacts: + paths: + - ".coverage.units" + + +calc_coverage: + stage: build + dependencies: + - unittest + - stress_test + script: + - coverage combine - coverage xml - coverage report coverage: /TOTAL.*\s+(\d+\%)/ + pages: image: zoo.smok.co/build/build:latest stage: build -- GitLab