Merge pull request #1296 from pypa/example-configs

CI updates, fix up example configs
This commit is contained in:
Joe Rickerby
2022-10-13 09:07:15 +01:00
committed by GitHub
5 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
jobs: jobs:
- job: linux_38 - job: linux_38
timeoutInMinutes: 120 timeoutInMinutes: 120
pool: {vmImage: 'Ubuntu-18.04'} pool: {vmImage: 'Ubuntu-20.04'}
steps: steps:
- task: UsePythonVersion@0 - task: UsePythonVersion@0
inputs: inputs:
+10 -11
View File
@@ -39,12 +39,12 @@ services = [
CIService( CIService(
name="appveyor", name="appveyor",
dst_config_path="appveyor.yml", dst_config_path="appveyor.yml",
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})", 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})",
), ),
CIService( CIService(
name="azure-pipelines", name="azure-pipelines",
dst_config_path="azure-pipelines.yml", dst_config_path="azure-pipelines.yml",
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})", 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})",
), ),
CIService( CIService(
name="circleci", name="circleci",
@@ -59,12 +59,12 @@ services = [
CIService( CIService(
name="travis-ci", name="travis-ci",
dst_config_path=".travis.yml", dst_config_path=".travis.yml",
badge_md="[![Build Status](https://travis-ci.org/pypa/cibuildwheel.svg?branch={branch})](https://travis-ci.org/pypa/cibuildwheel)", badge_md="[![Build Status](https://app.travis-ci.com/pypa/cibuildwheel.svg?branch={branch})](https://app.travis-ci.com/pypa/cibuildwheel)",
), ),
CIService( CIService(
name="gitlab", name="gitlab",
dst_config_path=".gitlab-ci.yml", dst_config_path=".gitlab-ci.yml",
badge_md="[![Gitlab](https://gitlab.com/pypa/cibuildwheel/badges/{branch}/pipeline.svg)](https://gitlab.com/pypa/cibuildwheel/-/commits/{branch})", badge_md="[![Gitlab](https://gitlab.com/joerick/cibuildwheel/badges/{branch}/pipeline.svg)](https://gitlab.com/joerick/cibuildwheel/-/commits/{branch})",
), ),
CIService( CIService(
name="cirrus-ci", name="cirrus-ci",
@@ -75,14 +75,13 @@ services = [
def ci_service_for_config_file(config_file): 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: try:
if service.name == service_name: return next(s for s in services if filename.startswith(s.name))
return service except StopIteration:
msg = f"unknown ci service for config file {config_file}"
msg = f"unknown ci service for config file {config_file}" raise ValueError(msg) from None
raise ValueError(msg)
@click.command() @click.command()
+1 -1
View File
@@ -1,6 +1,6 @@
jobs: jobs:
- job: linux - job: linux
pool: {vmImage: 'Ubuntu-16.04'} pool: {vmImage: 'Ubuntu-20.04'}
steps: steps:
- task: UsePythonVersion@0 - task: UsePythonVersion@0
- bash: | - bash: |
+1
View File
@@ -4,6 +4,7 @@
os: linux os: linux
dist: focal dist: focal
language: python language: python
python: "3.9"
jobs: jobs:
include: include:
+1
View File
@@ -1,6 +1,7 @@
os: linux os: linux
dist: focal dist: focal
language: python language: python
python: "3.9"
jobs: jobs:
include: include: