Skip to content

Commit

Permalink
Added build step to verify agent OS (#4758)
Browse files Browse the repository at this point in the history
* Added build step to verify agent OS
  • Loading branch information
chidozieononiwu authored and weshaggard committed Apr 4, 2019
1 parent b15c2fb commit 349d6a0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .azure-pipelines/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,23 @@ jobs:
vmImage: '$(OSVmImage)'

steps:
- powershell: |
Invoke-WebRequest -Uri "https://github.com/Azure/azure-sdk-tools/releases/download/sdk-tools_14793/sdk-tools.zip" `
-OutFile "sdk-tools.zip" | Wait-Process; Expand-Archive -Path "sdk-tools.zip" -DestinationPath "./sdk-tools/"
workingDirectory: '$(Build.BinariesDirectory)'
displayName: 'Download Tools Archive From Github Release and Extract it'
- task: UsePythonVersion@0
displayName: 'Use Python $(PythonVersion)'
inputs:
versionSpec: '$(PythonVersion)'

- task: PythonScript@0
displayName: 'Run VerifyAgentOS script'
inputs:
scriptPath: '$(Build.BinariesDirectory)/sdk-tools/scripts/python/verify_agent_os.py'
arguments: $(OSName)

- script: |
pip install pathlib twine codecov beautifulsoup4
displayName: 'Prep Environment'
Expand Down

0 comments on commit 349d6a0

Please sign in to comment.