Remove AzDo related code (#144)
This commit is contained in:
@@ -1,113 +0,0 @@
|
|||||||
name: $(date:yyyyMMdd)$(rev:.r)-Python-$(VERSION)
|
|
||||||
trigger: none
|
|
||||||
pr: none
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- stage: Build_Python_MacOS
|
|
||||||
dependsOn: []
|
|
||||||
variables:
|
|
||||||
VmImage: 'macOS-10.15'
|
|
||||||
Platform: darwin
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/build-job.yml
|
|
||||||
|
|
||||||
- stage: Test_Python_MacOS
|
|
||||||
condition: succeeded()
|
|
||||||
dependsOn: Build_Python_MacOS
|
|
||||||
variables:
|
|
||||||
VmImage: 'macOS-10.15'
|
|
||||||
Platform: darwin
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/test-job.yml
|
|
||||||
|
|
||||||
- stage: Build_Python_Ubuntu_1804
|
|
||||||
dependsOn: []
|
|
||||||
variables:
|
|
||||||
VmImage: 'ubuntu-18.04'
|
|
||||||
Platform: linux-18.04
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/build-job.yml
|
|
||||||
|
|
||||||
- stage: Test_Python_Ubuntu_1804
|
|
||||||
condition: succeeded()
|
|
||||||
dependsOn: Build_Python_Ubuntu_1804
|
|
||||||
variables:
|
|
||||||
VmImage: 'ubuntu-18.04'
|
|
||||||
Platform: linux-18.04
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/test-job.yml
|
|
||||||
|
|
||||||
- stage: Build_Python_Ubuntu_2004
|
|
||||||
dependsOn: []
|
|
||||||
variables:
|
|
||||||
VmImage: 'ubuntu-20.04'
|
|
||||||
Platform: linux-20.04
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/build-job.yml
|
|
||||||
|
|
||||||
- stage: Test_Python_Ubuntu_2004
|
|
||||||
condition: succeeded()
|
|
||||||
dependsOn: Build_Python_Ubuntu_2004
|
|
||||||
variables:
|
|
||||||
VmImage: 'ubuntu-20.04'
|
|
||||||
Platform: linux-20.04
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/test-job.yml
|
|
||||||
|
|
||||||
- stage: Build_Python_X64_Windows
|
|
||||||
dependsOn: []
|
|
||||||
variables:
|
|
||||||
VmImage: 'windows-2019'
|
|
||||||
Platform: win32
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/build-job.yml
|
|
||||||
|
|
||||||
- stage: Test_Python_x64_Windows
|
|
||||||
condition: succeeded()
|
|
||||||
dependsOn: Build_Python_X64_Windows
|
|
||||||
variables:
|
|
||||||
VmImage: 'windows-2019'
|
|
||||||
Platform: win32
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/test-job.yml
|
|
||||||
|
|
||||||
- stage: Build_Python_x86_Windows
|
|
||||||
dependsOn: []
|
|
||||||
variables:
|
|
||||||
VmImage: 'windows-2019'
|
|
||||||
Platform: win32
|
|
||||||
Architecture: x86
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/build-job.yml
|
|
||||||
|
|
||||||
- stage: Test_Python_x86_Windows
|
|
||||||
condition: succeeded()
|
|
||||||
dependsOn: Build_Python_x86_Windows
|
|
||||||
variables:
|
|
||||||
VmImage: 'windows-2019'
|
|
||||||
Platform: win32
|
|
||||||
Architecture: x86
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/test-job.yml
|
|
||||||
|
|
||||||
- stage: Publish_Release
|
|
||||||
dependsOn: [Test_Python_MacOS, Test_Python_Ubuntu_1804, Test_Python_Ubuntu_2004, Test_Python_x64_Windows, Test_Python_x86_Windows]
|
|
||||||
jobs:
|
|
||||||
- deployment: Publish_Release
|
|
||||||
pool:
|
|
||||||
name: Azure Pipelines
|
|
||||||
vmImage: ubuntu-18.04
|
|
||||||
environment: 'Get Available Tools Versions - Publishing Approval'
|
|
||||||
strategy:
|
|
||||||
runOnce:
|
|
||||||
deploy:
|
|
||||||
steps:
|
|
||||||
- template: /azure-pipelines/templates/publish-release-steps.yml
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
trigger: none
|
|
||||||
pr:
|
|
||||||
autoCancel: true
|
|
||||||
branches:
|
|
||||||
include:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
exclude:
|
|
||||||
- versions-manifest.json
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
- job: Run_Builds
|
|
||||||
pool:
|
|
||||||
name: Azure Pipelines
|
|
||||||
vmImage: 'ubuntu-latest'
|
|
||||||
timeoutInMinutes: 180
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- checkout: self
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Run build'
|
|
||||||
inputs:
|
|
||||||
targetType: filePath
|
|
||||||
filePath: './helpers/azure-devops/run-ci-builds.ps1 '
|
|
||||||
arguments: |
|
|
||||||
-TeamFoundationCollectionUri $(System.TeamFoundationCollectionUri) `
|
|
||||||
-AzureDevOpsProjectName $(System.TeamProject) `
|
|
||||||
-AzureDevOpsAccessToken $(System.AccessToken) `
|
|
||||||
-SourceBranch $(Build.SourceBranch) `
|
|
||||||
-DefinitionId $(DEFINITION_ID) `
|
|
||||||
-SourceVersion $(Build.SourceVersion) `
|
|
||||||
-ManifestLink $(MANIFEST_LINK) `
|
|
||||||
-WaitForBuilds $(WAIT_FOR_BUILDS) `
|
|
||||||
-ToolVersions "$(PYTHON_VERSIONS)" `
|
|
||||||
-RetryIntervalSec $(RETRY_INTERVAL_SEC) `
|
|
||||||
-RetryCount $(RETRY_COUNT)
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
jobs:
|
|
||||||
- job: Build_Python
|
|
||||||
timeoutInMinutes: 90
|
|
||||||
pool:
|
|
||||||
name: Azure Pipelines
|
|
||||||
vmImage: $(VmImage)
|
|
||||||
steps:
|
|
||||||
- checkout: self
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Build Python $(VERSION)'
|
|
||||||
inputs:
|
|
||||||
targetType: filePath
|
|
||||||
filePath: './builders/build-python.ps1'
|
|
||||||
arguments: '-Version $(VERSION) -Platform $(Platform) -Architecture $(Architecture)'
|
|
||||||
pwsh: true
|
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@1
|
|
||||||
displayName: 'Publish Artifact: Python $(VERSION)'
|
|
||||||
inputs:
|
|
||||||
targetPath: '$(Build.ArtifactStagingDirectory)'
|
|
||||||
artifactName: 'python-$(VERSION)-$(Platform)-$(Architecture)'
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
steps:
|
|
||||||
- download: none
|
|
||||||
|
|
||||||
- checkout: self
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- task: DownloadPipelineArtifact@2
|
|
||||||
inputs:
|
|
||||||
source: 'current'
|
|
||||||
path: $(Build.BinariesDirectory)
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Create release Python $(VERSION)'
|
|
||||||
inputs:
|
|
||||||
TargetType: inline
|
|
||||||
script: |
|
|
||||||
$tagName = "$(VERSION)-$(Build.BuildId)"
|
|
||||||
$releaseBody = "Python $(VERSION)"
|
|
||||||
./helpers/github/create-release.ps1 -RepositoryFullName "$(Build.Repository.Name)" `
|
|
||||||
-AccessToken "$(GITHUB_TOKEN)" `
|
|
||||||
-ToolVersion "$(VERSION)" `
|
|
||||||
-TagName "$tagName" `
|
|
||||||
-ReleaseBody "$releaseBody" `
|
|
||||||
-EventType "$(EVENT_TYPE)"
|
|
||||||
- task: GitHubRelease@1
|
|
||||||
displayName: 'Upload release assets'
|
|
||||||
inputs:
|
|
||||||
gitHubConnection: 'Github Connection'
|
|
||||||
action: edit
|
|
||||||
tag: '$(VERSION)-$(Build.BuildId)'
|
|
||||||
title: '$(VERSION)'
|
|
||||||
releaseNotesSource: inline
|
|
||||||
releaseNotesInline: '$(RELEASE_NOTES_CONTENT)'
|
|
||||||
assets: '$(Build.BinariesDirectory)/*/*'
|
|
||||||
assetUploadMode: replace
|
|
||||||
addChangeLog: false
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Trigger "Create Pull Request" workflow'
|
|
||||||
inputs:
|
|
||||||
TargetType: inline
|
|
||||||
script: |
|
|
||||||
Import-Module (Join-Path (Get-Location).Path "github-api.psm1")
|
|
||||||
$gitHubApi = Get-GitHubApi -RepositoryFullName "$(Build.Repository.Name)" -AccessToken "$(GITHUB_TOKEN)"
|
|
||||||
$gitHubApi.CreateWorkflowDispatch("$(WORKFLOW_FILE_NAME)", "$(WORKFLOW_DISPATCH_REF)", "$(INPUTS)")
|
|
||||||
Write-Host "Please find created Pull request here: $(Build.Repository.Uri)/pulls"
|
|
||||||
workingDirectory: '$(Build.SourcesDirectory)/helpers/github'
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
jobs:
|
|
||||||
- job: Test_Python
|
|
||||||
pool:
|
|
||||||
name: Azure Pipelines
|
|
||||||
vmImage: $(VmImage)
|
|
||||||
variables:
|
|
||||||
TestRunTitle: 'python-$(Platform)-$(Architecture)'
|
|
||||||
steps:
|
|
||||||
- checkout: self
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: Fully cleanup the toolcache directory before testing
|
|
||||||
inputs:
|
|
||||||
targetType: filePath
|
|
||||||
filePath: helpers/clean-toolcache.ps1
|
|
||||||
arguments: -ToolName "Python"
|
|
||||||
|
|
||||||
- task: DownloadPipelineArtifact@2
|
|
||||||
inputs:
|
|
||||||
source: 'current'
|
|
||||||
artifact: 'python-$(VERSION)-$(Platform)-$(Architecture)'
|
|
||||||
path: $(Build.BinariesDirectory)
|
|
||||||
|
|
||||||
- task: ExtractFiles@1
|
|
||||||
inputs:
|
|
||||||
archiveFilePatterns: '$(Build.BinariesDirectory)/python-$(VERSION)-$(Platform)-$(Architecture).*'
|
|
||||||
destinationFolder: $(Build.BinariesDirectory)
|
|
||||||
cleanDestinationFolder: false
|
|
||||||
overwriteExistingFiles: true
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Apply build artifact to the local machines'
|
|
||||||
inputs:
|
|
||||||
TargetType: inline
|
|
||||||
script: |
|
|
||||||
if ($env:PLATFORM -match 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh }
|
|
||||||
workingDirectory: '$(Build.BinariesDirectory)'
|
|
||||||
|
|
||||||
- task: UsePythonVersion@0
|
|
||||||
displayName: 'Use Python $(VERSION)'
|
|
||||||
inputs:
|
|
||||||
versionSpec: '$(VERSION)'
|
|
||||||
architecture: '$(Architecture)'
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Verbose sysconfig dump'
|
|
||||||
inputs:
|
|
||||||
TargetType: inline
|
|
||||||
script: |
|
|
||||||
Invoke-Expression "python ./sources/python-config-output.py"
|
|
||||||
workingDirectory: '$(Build.SourcesDirectory)/tests'
|
|
||||||
condition: ne(variables['Platform'], 'win32')
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Verbose python binary links'
|
|
||||||
inputs:
|
|
||||||
TargetType: inline
|
|
||||||
script: |
|
|
||||||
$pythonLocation = which python
|
|
||||||
if ($env:PLATFORM -match 'darwin') { otool -L $pythonLocation } else { ldd $pythonLocation }
|
|
||||||
workingDirectory: '$(Build.BinariesDirectory)'
|
|
||||||
condition: ne(variables['Platform'], 'win32')
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Run tests'
|
|
||||||
inputs:
|
|
||||||
TargetType: inline
|
|
||||||
script: |
|
|
||||||
Install-Module Pester -Force -Scope CurrentUser -RequiredVersion 4.10.1
|
|
||||||
Import-Module Pester
|
|
||||||
$pesterParams = @{
|
|
||||||
Path="./python-tests.ps1";
|
|
||||||
Parameters=@{
|
|
||||||
Version="$(VERSION)";
|
|
||||||
Platform="$(Platform)";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Invoke-Pester -Script $pesterParams -OutputFile "test_results.xml" -OutputFormat NUnitXml
|
|
||||||
pwsh: true
|
|
||||||
workingDirectory: '$(Build.SourcesDirectory)/tests'
|
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
|
||||||
displayName: 'Publish test results'
|
|
||||||
inputs:
|
|
||||||
testResultsFiles: '*.xml'
|
|
||||||
testResultsFormat: NUnit
|
|
||||||
searchFolder: 'tests'
|
|
||||||
failTaskOnFailedTests: true
|
|
||||||
testRunTitle: "$(TestRunTitle)"
|
|
||||||
condition: always()
|
|
||||||
Reference in New Issue
Block a user