|
|
|
@@ -39,12 +39,12 @@ services = [
|
|
|
|
|
CIService(
|
|
|
|
|
name="appveyor",
|
|
|
|
|
dst_config_path="appveyor.yml",
|
|
|
|
|
badge_md="[](https://ci.appveyor.com/project/pypa/cibuildwheel/branch/{branch})",
|
|
|
|
|
badge_md="[](https://ci.appveyor.com/project/joerick/cibuildwheel/branch/{branch})",
|
|
|
|
|
),
|
|
|
|
|
CIService(
|
|
|
|
|
name="azure-pipelines",
|
|
|
|
|
dst_config_path="azure-pipelines.yml",
|
|
|
|
|
badge_md="[](https://dev.azure.com/joerick0429/cibuildwheel/_build/latest?definitionId=2&branchName={branch})",
|
|
|
|
|
badge_md="[](https://dev.azure.com/joerick0429/cibuildwheel/_build/latest?definitionId=2&branchName={branch})",
|
|
|
|
|
),
|
|
|
|
|
CIService(
|
|
|
|
|
name="circleci",
|
|
|
|
@@ -59,12 +59,12 @@ services = [
|
|
|
|
|
CIService(
|
|
|
|
|
name="travis-ci",
|
|
|
|
|
dst_config_path=".travis.yml",
|
|
|
|
|
badge_md="[](https://travis-ci.org/pypa/cibuildwheel)",
|
|
|
|
|
badge_md="[](https://app.travis-ci.com/pypa/cibuildwheel)",
|
|
|
|
|
),
|
|
|
|
|
CIService(
|
|
|
|
|
name="gitlab",
|
|
|
|
|
dst_config_path=".gitlab-ci.yml",
|
|
|
|
|
badge_md="[](https://gitlab.com/pypa/cibuildwheel/-/commits/{branch})",
|
|
|
|
|
badge_md="[](https://gitlab.com/joerick/cibuildwheel/-/commits/{branch})",
|
|
|
|
|
),
|
|
|
|
|
CIService(
|
|
|
|
|
name="cirrus-ci",
|
|
|
|
@@ -75,14 +75,13 @@ services = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ci_service_for_config_file(config_file):
|
|
|
|
|
service_name = Path(config_file).name.rsplit("-", 1)[0]
|
|
|
|
|
filename = Path(config_file).name
|
|
|
|
|
|
|
|
|
|
for service in services:
|
|
|
|
|
if service.name == service_name:
|
|
|
|
|
return service
|
|
|
|
|
|
|
|
|
|
msg = f"unknown ci service for config file {config_file}"
|
|
|
|
|
raise ValueError(msg)
|
|
|
|
|
try:
|
|
|
|
|
return next(s for s in services if filename.startswith(s.name))
|
|
|
|
|
except StopIteration:
|
|
|
|
|
msg = f"unknown ci service for config file {config_file}"
|
|
|
|
|
raise ValueError(msg) from None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.command()
|
|
|
|
|