@@ -39,12 +39,12 @@ def generate_basic_project(path):
3939 CIService (
4040 name = "appveyor" ,
4141 dst_config_path = "appveyor.yml" ,
42- badge_md = "[](https://ci.appveyor.com/project/pypa /cibuildwheel/branch/{branch})" ,
42+ badge_md = "[](https://ci.appveyor.com/project/joerick /cibuildwheel/branch/{branch})" ,
4343 ),
4444 CIService (
4545 name = "azure-pipelines" ,
4646 dst_config_path = "azure-pipelines.yml" ,
47- badge_md = "[](https://dev.azure.com/joerick0429/cibuildwheel/_build/latest?definitionId=2&branchName={branch})" ,
47+ badge_md = "[](https://dev.azure.com/joerick0429/cibuildwheel/_build/latest?definitionId=2&branchName={branch})" ,
4848 ),
4949 CIService (
5050 name = "circleci" ,
@@ -59,12 +59,12 @@ def generate_basic_project(path):
5959 CIService (
6060 name = "travis-ci" ,
6161 dst_config_path = ".travis.yml" ,
62- badge_md = "[](https://travis-ci.org /pypa/cibuildwheel)" ,
62+ badge_md = "[](https://app. travis-ci.com /pypa/cibuildwheel)" ,
6363 ),
6464 CIService (
6565 name = "gitlab" ,
6666 dst_config_path = ".gitlab-ci.yml" ,
67- badge_md = "[](https://gitlab.com/pypa /cibuildwheel/-/commits/{branch})" ,
67+ badge_md = "[](https://gitlab.com/joerick /cibuildwheel/-/commits/{branch})" ,
6868 ),
6969 CIService (
7070 name = "cirrus-ci" ,
@@ -75,14 +75,13 @@ def generate_basic_project(path):
7575
7676
7777def ci_service_for_config_file (config_file ):
78- service_name = Path (config_file ).name . rsplit ( "-" , 1 )[ 0 ]
78+ filename = Path (config_file ).name
7979
80- for service in services :
81- if service .name == service_name :
82- return service
83-
84- msg = f"unknown ci service for config file { config_file } "
85- raise ValueError (msg )
80+ try :
81+ return next (s for s in services if filename .startswith (s .name ))
82+ except StopIteration :
83+ msg = f"unknown ci service for config file { config_file } "
84+ raise ValueError (msg ) from None
8685
8786
8887@click .command ()
0 commit comments