| 1 | steps: |
| 2 | - script: 'rm -rf azure-cli' |
| 3 | displayName: 'delete azure cli directory' |
| 4 | |
| 5 | - script: 'git clone https://github.com/Azure/azure-cli.git' |
| 6 | displayName: 'Clone Azure CLI repository' |
| 7 | |
| 8 | - script: 'pip install --upgrade .' |
| 9 | displayName: 'Install Azure CLI test SDK' |
| 10 | workingDirectory: 'azure-cli/src/azure-cli-testsdk/' |
| 11 | |
| 12 | - script: 'python setup.py sdist bdist_wheel' |
| 13 | displayName: 'Build wheel for Azure CLI test SDK' |
| 14 | workingDirectory: 'azure-cli/src/azure-cli-testsdk/' |
| 15 | |
| 16 | - task: PublishBuildArtifacts@1 |
| 17 | displayName: 'Publish Azure CLI test SDK as artifact' |
| 18 | inputs: |
| 19 | pathtoPublish: 'azure-cli/src/azure-cli-testsdk/dist' |
| 20 | artifactName: 'azure-cli-test-sdk' |
| 21 | publishLocation: 'Container' |