From 90dc8ef511bfb3257819a35b122878f01ba5a385 Mon Sep 17 00:00:00 2001 From: Emanuele Tajariol Date: Thu, 19 Oct 2023 14:35:47 +0200 Subject: [PATCH] [Fixes #11603] Improve codecov integration (#11607) * [Fixes #11603] Improve codecov integration * [Fixes #11603] Improve codecov integration * [Fixes #11603] Improve codecov integration * [Fixes #11603] Improve codecov integration * [Fixes #11603] Improve codecov integration --- .circleci/config.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 22de58db724..782732b6ff3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,8 @@ jobs: type: boolean save_docker_cache: type: boolean + codecov_name: + type: string test_suite: type: string default: "" @@ -90,7 +92,7 @@ jobs: - run: name: Run code quality checks command: | - docker-compose --env-file .env_test -f docker-compose-test.yml exec django bash -c 'codecov; bash <(curl -s https://codecov.io/bash) -t 2c0e7780-1640-45f0-93a3-e103b057d8c8' + docker-compose --env-file .env_test -f docker-compose-test.yml exec django bash -c ' bash <(curl -s https://codecov.io/bash) -t 2c0e7780-1640-45f0-93a3-e103b057d8c8 -F <>' working_directory: ./ workflows: @@ -99,31 +101,37 @@ workflows: jobs: - build: name: geonode_test_suite_smoke + codecov_name: smoke_tests load_docker_cache: false save_docker_cache: false test_suite: ./test.sh geonode.tests.smoke geonode.tests.test_message_notifications geonode.tests.test_rest_api geonode.tests.test_search geonode.tests.test_utils geonode.tests.test_headers - build: name: geonode_test_suite + codecov_name: main_tests load_docker_cache: false save_docker_cache: false test_suite: ./test.sh $(python -c "import sys;from geonode import settings;sys.stdout.write('\'' '\''.join([a+'\''.tests'\'' for a in settings.GEONODE_APPS if '\''security'\'' not in a and '\''geoserver'\'' not in a]))") geonode.thumbs.tests geonode.people.tests geonode.people.socialaccount.providers.geonode_openid_connect.tests - build: name: geonode_test_security + codecov_name: security_tests load_docker_cache: false save_docker_cache: false test_suite: ./test.sh $(python -c "import sys;from geonode import settings;sys.stdout.write('\'' '\''.join([a+'\''.tests'\'' for a in settings.GEONODE_APPS if '\''security'\'' in a]))") - build: name: geonode_test_gis_backend + codecov_name: gis load_docker_cache: false save_docker_cache: false test_suite: ./test.sh $(python -c "import sys;from geonode import settings;sys.stdout.write('\'' '\''.join([a+'\''.tests'\'' for a in settings.GEONODE_APPS if '\''geoserver'\'' in a]))") - build: name: geonode_test_rest_apis + codecov_name: api load_docker_cache: false save_docker_cache: false test_suite: ./test.sh geonode.base.api.tests geonode.layers.api.tests geonode.maps.api.tests geonode.documents.api.tests geonode.geoapps.api.tests geonode.upload.api.tests - build: name: geonode_test_csw + codecov_name: csw load_docker_cache: false save_docker_cache: false test_suite: ./test.sh geonode.tests.csw geonode.catalogue.backends.tests