codecov-cli 11.1.0__tar.gz → 11.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codecov_cli-11.1.0/codecov_cli.egg-info → codecov_cli-11.2.0}/PKG-INFO +1 -1
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/buildkite.py +30 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0/codecov_cli.egg-info}/PKG-INFO +1 -1
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli.egg-info/entry_points.txt +1 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/pyproject.toml +2 -1
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_buildkite.py +37 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/LICENSE +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/MANIFEST.in +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/README.md +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/branding.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/base_picking.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/commit.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/create_report_result.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/empty_upload.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/get_report_results.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/labelanalysis.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/process_test_results.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/report.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/send_notifications.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/staticanalysis.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/upload.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/upload_coverage.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/commands/upload_process.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/fallbacks.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/args.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/appveyor_ci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/azure_pipelines.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/base.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/bitbucket_ci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/bitrise_ci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/circleci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/cirrus_ci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/cloudbuild.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/codebuild.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/droneci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/github_actions.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/gitlab_ci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/heroku.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/jenkins.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/local.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/teamcity.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/travis_ci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/woodpeckerci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/config.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/encoder.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/folder_searcher.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/git.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/git_services/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/git_services/github.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/glob.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/logging_utils.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/options.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/request.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/upload_type.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/validators.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/versioning_systems.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/main.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/opentelemetry.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/plugins/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/plugins/compress_pycoverage_contexts.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/plugins/gcov.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/plugins/pycoverage.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/plugins/types.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/plugins/xcode.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/runners/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/runners/dan_runner.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/runners/pytest_standard_runner.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/runners/types.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/commit/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/commit/base_picking.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/empty_upload/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/report/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload/file_finder.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload/legacy_upload_sender.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload/network_finder.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload/upload_collector.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload/upload_sender.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload_completion/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload_coverage/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/types.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli.egg-info/SOURCES.txt +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli.egg-info/dependency_links.txt +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli.egg-info/requires.txt +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli.egg-info/top_level.txt +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/example_cli_config.yml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/example_module.js +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/.codecov.yaml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/.codecov.yml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/.github/.codecov.yaml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/.github/.codecov.yml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/.github/codecov.yaml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/.github/codecov.yml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/codecov.yaml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/codecov.yml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/dev/.codecov.yaml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/dev/.codecov.yml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/dev/codecov.yaml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/fake_project/dev/codecov.yml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/inputs/sample_001.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/inputs/sample_002.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/inputs/sample_003.js +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/inputs/sample_004.js +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/inputs/sample_005.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/junit.xml +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/outputs/sample_001.json +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/outputs/sample_002.json +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/outputs/sample_003.json +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/outputs/sample_004.json +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/samples/outputs/sample_005.json +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/setup.cfg +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/setup.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_appveyor.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_azure_pipelines.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_bitbucket_ci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_bitrise.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_circleci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_cirrusci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_cloudbuild.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_codebuild.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_droneci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_ghactions.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_gitlabci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_herokuci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_jenkins.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_local.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_teamcity.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_travis_ci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/ci_adapters/test_woodpeckerci.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/commands/__init__.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/commands/test_invoke_empty_upload.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/commands/test_invoke_labelanalysis.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/commands/test_invoke_upload.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/commands/test_invoke_upload_coverage.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/commands/test_invoke_upload_process.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/commands/test_process_test_results.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/commands/test_upload_token_discovery.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/conftest.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/data/files_to_fix_examples/bad_encoding.go +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/data/files_to_fix_examples/sample.cpp +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/data/files_to_fix_examples/sample.go +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/data/files_to_fix_examples/sample.kt +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/data/files_to_fix_examples/sample.php +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/data/reports_examples.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/data//320/232/320/276/320/275/321/202/321/200/320/276/320/273/320/273/320/265/321/200/321/213//320/237/320/276/320/273/321/214/320/267/320/276/320/262/320/260/321/202/320/265/320/273/321/214//320/223/320/273/320/260/320/262/320/275/321/213/320/271/320/232/320/276/320/275/321/202/321/200/320/276/320/273/320/273/320/265/321/200.php" +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/factory.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/git_services/test_github.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_args.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_ci_adapter_selection.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_config.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_encoder.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_folder_searcher.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_git.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_legacy_upload_sender.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_network_finder.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_request.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_upload_sender.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_validators.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/helpers/test_versioning_systems.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/plugins/test_compress_pycoverage_contexts.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/plugins/test_gcov.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/plugins/test_instantiation.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/plugins/test_pycoverage.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/plugins/test_xcode.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/runners/test_dan_runner.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/runners/test_pytest_standard_runner.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/runners/test_runners.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/runners/test_types.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/commit/test_base_picking.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/commit/test_commit_service.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/empty_upload/test_empty_upload.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/report/test_report_results.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/report/test_report_service.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/upload/test_coverage_file_finder.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/upload/test_upload_collector.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/upload/test_upload_service.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/upload_completion/test_upload_completion.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/test_codecov_cli.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/test_fallbacks.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/test_helpers.py +0 -0
- {codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/test_types.py +0 -0
|
@@ -22,12 +22,42 @@ class BuildkiteAdapter(CIAdapterBase):
|
|
|
22
22
|
return os.getenv("BUILDKITE_COMMIT")
|
|
23
23
|
|
|
24
24
|
def _get_slug(self):
|
|
25
|
+
# https://buildkite.com/docs/pipelines/configure/environment-variables#BUILDKITE_REPO
|
|
26
|
+
repo_url = os.getenv("BUILDKITE_REPO")
|
|
27
|
+
if repo_url:
|
|
28
|
+
slug = self._parse_slug_from_repo(repo_url)
|
|
29
|
+
if slug:
|
|
30
|
+
return slug
|
|
31
|
+
|
|
32
|
+
# Fallback to organization and pipeline slugs
|
|
25
33
|
org = os.getenv("BUILDKITE_ORGANIZATION_SLUG")
|
|
26
34
|
repo = os.getenv("BUILDKITE_PIPELINE_SLUG")
|
|
27
35
|
if org and repo:
|
|
28
36
|
return f"{org}/{repo}"
|
|
29
37
|
return None
|
|
30
38
|
|
|
39
|
+
def _parse_slug_from_repo(self, repo_url: str):
|
|
40
|
+
"""
|
|
41
|
+
TODO: this is relevant: https://stackoverflow.com/questions/31801271/what-are-the-supported-git-url-formats
|
|
42
|
+
supports:
|
|
43
|
+
(protocol://)host.xz/path/to/repo(.git/)
|
|
44
|
+
(protocol://)host.xz:path/to/repo(.git/)
|
|
45
|
+
(protocol://)user@host.xz:path/to/repo(.git/)
|
|
46
|
+
(protocol://)user@host.xz/path/to/repo(.git/)
|
|
47
|
+
"""
|
|
48
|
+
if not repo_url:
|
|
49
|
+
return None
|
|
50
|
+
|
|
51
|
+
value = repo_url.strip()
|
|
52
|
+
value = value.removesuffix("/")
|
|
53
|
+
value = value.removesuffix(".git")
|
|
54
|
+
|
|
55
|
+
value = value.replace(":", "/")
|
|
56
|
+
parts = [p for p in value.split("/") if p]
|
|
57
|
+
if len(parts) >= 2:
|
|
58
|
+
return "/".join(parts[-2:])
|
|
59
|
+
return None
|
|
60
|
+
|
|
31
61
|
def _get_service(self):
|
|
32
62
|
return "buildkite"
|
|
33
63
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "codecov-cli"
|
|
3
|
-
version = "11.
|
|
3
|
+
version = "11.2.0"
|
|
4
4
|
description = "Codecov Command Line Interface"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license-files = ["LICENSE"]
|
|
@@ -34,6 +34,7 @@ dev = [
|
|
|
34
34
|
[project.scripts]
|
|
35
35
|
codecov = "codecov_cli.main:run"
|
|
36
36
|
codecovcli = "codecov_cli.main:run"
|
|
37
|
+
codecov-cli = "codecov_cli.main:run"
|
|
37
38
|
|
|
38
39
|
[build-system]
|
|
39
40
|
requires = ["setuptools"]
|
|
@@ -12,6 +12,7 @@ class BuildkiteEnvEnum(str, Enum):
|
|
|
12
12
|
BUILDKITE_BUILD_NUMBER = "BUILDKITE_BUILD_NUMBER"
|
|
13
13
|
BUILDKITE_BUILD_URL = "BUILDKITE_BUILD_URL"
|
|
14
14
|
BUILDKITE_COMMIT = "BUILDKITE_COMMIT"
|
|
15
|
+
BUILDKITE_REPO = "BUILDKITE_REPO"
|
|
15
16
|
BUILDKITE_ORGANIZATION_SLUG = "BUILDKITE_ORGANIZATION_SLUG"
|
|
16
17
|
BUILDKITE_PIPELINE_SLUG = "BUILDKITE_PIPELINE_SLUG"
|
|
17
18
|
BUILDKITE_PULL_REQUEST = "BUILDKITE_PULL_REQUEST"
|
|
@@ -105,6 +106,33 @@ class TestBuildkite(object):
|
|
|
105
106
|
"env_dict,expected",
|
|
106
107
|
[
|
|
107
108
|
({}, None),
|
|
109
|
+
(
|
|
110
|
+
{
|
|
111
|
+
BuildkiteEnvEnum.BUILDKITE_REPO: "git@github.com:codecov/umbrella.git"
|
|
112
|
+
},
|
|
113
|
+
"codecov/umbrella",
|
|
114
|
+
),
|
|
115
|
+
(
|
|
116
|
+
{
|
|
117
|
+
BuildkiteEnvEnum.BUILDKITE_REPO: "https://github.com/codecov/umbrella.git"
|
|
118
|
+
},
|
|
119
|
+
"codecov/umbrella",
|
|
120
|
+
),
|
|
121
|
+
(
|
|
122
|
+
{
|
|
123
|
+
BuildkiteEnvEnum.BUILDKITE_REPO: "ssh://git@github.com/codecov/umbrella.git"
|
|
124
|
+
},
|
|
125
|
+
"codecov/umbrella",
|
|
126
|
+
),
|
|
127
|
+
(
|
|
128
|
+
{BuildkiteEnvEnum.BUILDKITE_REPO: "git://github.com/codecov/umbrella"},
|
|
129
|
+
"codecov/umbrella",
|
|
130
|
+
),
|
|
131
|
+
(
|
|
132
|
+
# already-slug-like fallback
|
|
133
|
+
{BuildkiteEnvEnum.BUILDKITE_REPO: "codecov/umbrella"},
|
|
134
|
+
"codecov/umbrella",
|
|
135
|
+
),
|
|
108
136
|
(
|
|
109
137
|
{
|
|
110
138
|
BuildkiteEnvEnum.BUILDKITE_ORGANIZATION_SLUG: "myorg",
|
|
@@ -119,6 +147,15 @@ class TestBuildkite(object):
|
|
|
119
147
|
},
|
|
120
148
|
"myorg/subteam/myrepo",
|
|
121
149
|
),
|
|
150
|
+
(
|
|
151
|
+
# precedence: BUILDKITE_REPO should win over ORG/PIPELINE
|
|
152
|
+
{
|
|
153
|
+
BuildkiteEnvEnum.BUILDKITE_REPO: "git@github.com:codecov/umbrella.git",
|
|
154
|
+
BuildkiteEnvEnum.BUILDKITE_ORGANIZATION_SLUG: "myorg",
|
|
155
|
+
BuildkiteEnvEnum.BUILDKITE_PIPELINE_SLUG: "myrepo",
|
|
156
|
+
},
|
|
157
|
+
"codecov/umbrella",
|
|
158
|
+
),
|
|
122
159
|
(
|
|
123
160
|
{
|
|
124
161
|
BuildkiteEnvEnum.BUILDKITE_ORGANIZATION_SLUG: "myorg",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/helpers/ci_adapters/azure_pipelines.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/plugins/compress_pycoverage_contexts.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload/legacy_upload_sender.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.1.0 → codecov_cli-11.2.0}/codecov_cli/services/upload_completion/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/plugins/test_compress_pycoverage_contexts.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/upload/test_coverage_file_finder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.1.0 → codecov_cli-11.2.0}/tests/services/upload_completion/test_upload_completion.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|