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

Autorest check to run tests in autorestv3 branch for core #11131

Merged
merged 8 commits into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from 7 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
3 changes: 2 additions & 1 deletion eng/autorest_req.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ pytest-cov==2.8.1
pytest-asyncio==0.10.0; python_version >= '3.5'
isodate==0.6.0
msrest==0.6.13
aiohttp==3.6.2
aiohttp==3.6.2
wheel
30 changes: 21 additions & 9 deletions eng/pipelines/autorest_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ variables:
NodeVersion: '10.x'
PythonVersion: '3.6'
auto_rest_clone_url: 'https://github.com/Azure/autorest.python.git'
repo_branch: 'azure-core'
source_path: 'sdk/core/azure-core'
repo_branch: 'autorestv3'
source_path_azure_core: 'sdk/core/azure-core'
source_path_azure_mgmt_core: 'sdk/core/azure-mgmt-core'

jobs:
- job: 'Run_AutoRest'
Expand All @@ -40,13 +41,24 @@ jobs:

- script: |
pip install -r eng/autorest_req.txt
pip install $(Build.SourcesDirectory)/$(source_path)
displayName: 'Prepare Environment'

- script: |
git clone --recursive $(auto_rest_clone_url)
git clone $(auto_rest_clone_url)
cd autorest.python
git checkout $(repo_branch)
npm install
pytest test/vanilla
displayName: 'Run Test'
displayName: 'Prepare Environment'

- script: |
cd $(Build.SourcesDirectory)/autorest.python/test/vanilla
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'

- script: |
cd $(Build.SourcesDirectory)/autorest.python/test/azure
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'