Merge pull request #1296 from pypa/example-configs
CI updates, fix up example configs
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
@@ -39,12 +39,12 @@ services = [
|
|||||||
CIService(
|
CIService(
|
||||||
name="appveyor",
|
name="appveyor",
|
||||||
dst_config_path="appveyor.yml",
|
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(
|
CIService(
|
||||||
name="azure-pipelines",
|
name="azure-pipelines",
|
||||||
dst_config_path="azure-pipelines.yml",
|
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(
|
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="[](https://travis-ci.org/pypa/cibuildwheel)",
|
badge_md="[](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="[](https://gitlab.com/pypa/cibuildwheel/-/commits/{branch})",
|
badge_md="[](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,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: |
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
os: linux
|
os: linux
|
||||||
dist: focal
|
dist: focal
|
||||||
language: python
|
language: python
|
||||||
|
python: "3.9"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
os: linux
|
os: linux
|
||||||
dist: focal
|
dist: focal
|
||||||
language: python
|
language: python
|
||||||
|
python: "3.9"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
|||||||
Reference in New Issue
Block a user