This commit is contained in:
Родитель
8540d16e6a
Коммит
73f10d3dfe
|
@ -43,39 +43,6 @@ jobs:
|
|||
python -m mypy --ignore-missing-imports tests/
|
||||
displayName: "Type Check"
|
||||
|
||||
- job: "Publish"
|
||||
pool:
|
||||
vmImage: "ubuntu-latest"
|
||||
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: "3.x"
|
||||
|
||||
- script: |
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
displayName: "Install Poetry"
|
||||
|
||||
- script: |
|
||||
poetry install
|
||||
displayName: "Install dependencies"
|
||||
|
||||
- script: |
|
||||
poetry build
|
||||
displayName: "Build"
|
||||
|
||||
- task: EsrpRelease@2
|
||||
inputs:
|
||||
ConnectedServiceName: "OM-ESRP-Release-Publishing"
|
||||
Intent: "PackageDistribution"
|
||||
ContentType: "PyPi"
|
||||
PackageLocation: "dist"
|
||||
Owners: "jizhen@microsoft.com"
|
||||
Approvers: "jizhen@microsoft.com"
|
||||
ServiceEndpointUrl: "https://api.esrp.microsoft.com"
|
||||
MainPublisher: "OutlookMobileiOSESRPPublisher"
|
||||
DomainTenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
|
||||
|
||||
# Disable for now until we set up a testable Azure DevOps instance
|
||||
# - script: |
|
||||
# source bin/activate
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
trigger:
|
||||
tags:
|
||||
include:
|
||||
- "*"
|
||||
|
||||
pool:
|
||||
vmImage: "ubuntu-latest"
|
||||
|
||||
jobs:
|
||||
- job: "Publish"
|
||||
pool:
|
||||
vmImage: "ubuntu-latest"
|
||||
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: "3.x"
|
||||
|
||||
- script: |
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
displayName: "Install Poetry"
|
||||
|
||||
- script: |
|
||||
poetry install
|
||||
displayName: "Install dependencies"
|
||||
|
||||
- script: |
|
||||
poetry build
|
||||
displayName: "Build"
|
||||
|
||||
- task: EsrpRelease@2
|
||||
inputs:
|
||||
ConnectedServiceName: "OM-ESRP-Release-Publishing"
|
||||
Intent: "PackageDistribution"
|
||||
ContentType: "PyPi"
|
||||
PackageLocation: "dist"
|
||||
Owners: "jizhen@microsoft.com"
|
||||
Approvers: "jizhen@microsoft.com"
|
||||
ServiceEndpointUrl: "https://api.esrp.microsoft.com"
|
||||
MainPublisher: "OutlookMobileiOSESRPPublisher"
|
||||
DomainTenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
|
Загрузка…
Ссылка в новой задаче