Skip to content

Commit

Permalink
Autorest check to run tests in autorestv3 branch for core (#11131)
Browse files Browse the repository at this point in the history
* Autorest CI changes to use autorestv3
  • Loading branch information
praveenkuttappan authored Apr 29, 2020
1 parent 998b4e5 commit d8b9e85
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
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

0 comments on commit d8b9e85

Please sign in to comment.