Skip to content

Commit 563b1c1

Browse files
authored
Merge pull request #1296 from pypa/example-configs
CI updates, fix up example configs
2 parents bea8df9 + 6086673 commit 563b1c1

5 files changed

+14
-13
lines changed

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
jobs:
22
- job: linux_38
33
timeoutInMinutes: 120
4-
pool: {vmImage: 'Ubuntu-18.04'}
4+
pool: {vmImage: 'Ubuntu-20.04'}
55
steps:
66
- task: UsePythonVersion@0
77
inputs:

bin/run_example_ci_configs.py

+10-11
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ def generate_basic_project(path):
3939
CIService(
4040
name="appveyor",
4141
dst_config_path="appveyor.yml",
42-
badge_md="[![Build status](https://ci.appveyor.com/api/projects/status/wbsgxshp05tt1tif/branch/{branch}?svg=true)](https://ci.appveyor.com/project/pypa/cibuildwheel/branch/{branch})",
42+
badge_md="[![Build status](https://ci.appveyor.com/api/projects/status/gt3vwl88yt0y3hur/branch/{branch}?svg=true)](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="[![Build Status](https://dev.azure.com/joerick0429/cibuildwheel/_apis/build/status/joerick.cibuildwheel?branchName={branch})](https://dev.azure.com/joerick0429/cibuildwheel/_build/latest?definitionId=2&branchName={branch})",
47+
badge_md="[![Build Status](https://dev.azure.com/joerick0429/cibuildwheel/_apis/build/status/pypa.cibuildwheel?branchName={branch})](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="[![Build Status](https://travis-ci.org/pypa/cibuildwheel.svg?branch={branch})](https://travis-ci.org/pypa/cibuildwheel)",
62+
badge_md="[![Build Status](https://app.travis-ci.com/pypa/cibuildwheel.svg?branch={branch})](https://app.travis-ci.com/pypa/cibuildwheel)",
6363
),
6464
CIService(
6565
name="gitlab",
6666
dst_config_path=".gitlab-ci.yml",
67-
badge_md="[![Gitlab](https://gitlab.com/pypa/cibuildwheel/badges/{branch}/pipeline.svg)](https://gitlab.com/pypa/cibuildwheel/-/commits/{branch})",
67+
badge_md="[![Gitlab](https://gitlab.com/joerick/cibuildwheel/badges/{branch}/pipeline.svg)](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

7777
def 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()

examples/azure-pipelines-minimal.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jobs:
22
- job: linux
3-
pool: {vmImage: 'Ubuntu-16.04'}
3+
pool: {vmImage: 'Ubuntu-20.04'}
44
steps:
55
- task: UsePythonVersion@0
66
- bash: |

examples/travis-ci-deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
os: linux
55
dist: focal
66
language: python
7+
python: "3.9"
78

89
jobs:
910
include:

examples/travis-ci-minimal.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
os: linux
22
dist: focal
33
language: python
4+
python: "3.9"
45

56
jobs:
67
include:

0 commit comments

Comments
 (0)