Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[scripts] Update python - autorest - pr with new autorest test folder structure #19887

Merged
merged 4 commits into from
Jul 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions eng/pipelines/autorest_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,24 @@ jobs:
versionSpec: $(PythonVersion)

- script: |
pip install -r eng/autorest_req.txt
git clone $(auto_rest_clone_url)
cd autorest.python
git checkout $(repo_branch)
npm install
displayName: 'Prepare Environment'

- script: |
cd $(Build.SourcesDirectory)/autorest.python/test/vanilla
cd $(Build.SourcesDirectory)/autorest.python/test/vanilla/legacy
pip install $(Build.SourcesDirectory)/$(source_path_azure_core)
pip install -r requirements.txt
pip freeze
pytest $(Build.SourcesDirectory)/autorest.python/test/vanilla
displayName: 'Install azure-core and Test Vanilla'
pytest $(Build.SourcesDirectory)/autorest.python/test/vanilla/legacy
displayName: 'Install azure-core and Test Vanilla Legacy'

- script: |
cd $(Build.SourcesDirectory)/autorest.python/test/azure
cd $(Build.SourcesDirectory)/autorest.python/test/azure/legacy
pip install $(Build.SourcesDirectory)/$(source_path_azure_mgmt_core)
pip install -r requirements.txt
pip freeze
pytest $(Build.SourcesDirectory)/autorest.python/test/azure
displayName: 'Install azure-mgmt-core and Test Azure'
pytest $(Build.SourcesDirectory)/autorest.python/test/azure/legacy
displayName: 'Install azure-mgmt-core and Test Azure Legacy'