diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 624322e87badd6af4ec23fe3ba2fbc84971ddf52..ecda7b19bbcd3e80e03f341ef621b8e7cc9ebd0f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,6 @@ workflow: - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Pushes to main - if: $CI_PIPELINE_SOURCE == 'schedule' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Scheduled in main - stages: - maintenance - build @@ -491,6 +490,31 @@ sanitizer-test-on-main-scheduled: - ep_015.g192 - "./*/logs" +# GCOV/LCOV coverage analysis of self_test suite +coverage-test-on-main-scheduled: + extends: + - .test-job-linux-needs-testv-dir + - .rules-main-scheduled + tags: + - coverage-test + stage: test + rules: + # only run in scheduled pipeline that passes this env vars + - if: $COVERAGE_TEST + script: + - *print-common-info + - make GCOV=1 -j + - ./scripts/self_test.py --create -t 1 + - ./scripts/self_test.py --create -t 1 scripts/config/self_test_evs.prm + - ./scripts/ivas_pytests/self_test_b.py --create_only --numprocesses 1 --encref IVAS_cod --decref IVAS_dec --encdut IVAS_cod --decdut IVAS_dec + - lcov -c -d obj -o coverage.info + - genhtml coverage.info -o coverage + artifacts: + name: "main-coverage-sha-$CI_COMMIT_SHORT_SHA" + when: always + paths: + - coverage.info + - coverage # --------------------------------------------------------------- # Other jobs