Skip to content

Commit

Permalink
[Fixes #11603] Improve codecov integration (#11607)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
etj authored Oct 19, 2023
1 parent 31ea8c8 commit 90dc8ef
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
type: boolean
save_docker_cache:
type: boolean
codecov_name:
type: string
test_suite:
type: string
default: ""
Expand Down Expand Up @@ -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 <<parameters.codecov_name>>'
working_directory: ./

workflows:
Expand All @@ -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
Expand Down

0 comments on commit 90dc8ef

Please sign in to comment.