Skip to content
Merged
Show file tree
Hide file tree
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
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'
2 changes: 1 addition & 1 deletion sdk/core/azure-core/dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ typing_extensions>=3.7.2
opencensus>=0.6.0
opencensus-ext-azure>=0.3.1
opencensus-ext-threading
mock
mock