diff --git a/eng/autorest_req.txt b/eng/autorest_req.txt index e2808bca4ecf..b9f608c81eaa 100644 --- a/eng/autorest_req.txt +++ b/eng/autorest_req.txt @@ -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 \ No newline at end of file +aiohttp==3.6.2 +wheel \ No newline at end of file diff --git a/eng/pipelines/autorest_checks.yml b/eng/pipelines/autorest_checks.yml index 6b7897ce4299..1828ccd317b0 100644 --- a/eng/pipelines/autorest_checks.yml +++ b/eng/pipelines/autorest_checks.yml @@ -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' @@ -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' \ No newline at end of file + 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' \ No newline at end of file diff --git a/sdk/core/azure-core/dev_requirements.txt b/sdk/core/azure-core/dev_requirements.txt index 8b52ac11404e..b90c3caa146b 100644 --- a/sdk/core/azure-core/dev_requirements.txt +++ b/sdk/core/azure-core/dev_requirements.txt @@ -6,4 +6,4 @@ typing_extensions>=3.7.2 opencensus>=0.6.0 opencensus-ext-azure>=0.3.1 opencensus-ext-threading -mock +mock \ No newline at end of file