Skip to content

Commit

Permalink
attempt to delete extension dir (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravsaralMs committed Jul 24, 2019
1 parent ae2d498 commit 1650ca9
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 41 deletions.
42 changes: 22 additions & 20 deletions .azure-pipelines/azure-pipelines-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,26 @@ jobs:
storage: 'azuredevopscli'
containerName: 'azuredevopscli'

- job: 'Run_Test_Ubuntu'
dependsOn: ['Build_Publish_Azure_CLI_Test_SDK','Build_Publish_Azure_DevOps_CLI_Extension']
pool:
vmImage: 'Ubuntu-16.04'
strategy:
matrix:
Python27:
python.version: '2.x'
Python36:
python.version: '3.6.8'
Python37:
python.version: '3.x'
maxParallel: 3

steps:
- template: templates/run-tests.yml
parameters:
pythonVersion: '$(python.version)'
# - job: 'Run_Test_Ubuntu'
# dependsOn: ['Build_Publish_Azure_CLI_Test_SDK','Build_Publish_Azure_DevOps_CLI_Extension']
# pool:
# vmImage: 'Ubuntu-16.04'
# strategy:
# matrix:
# Python27:
# python.version: '2.x'
# Python36:
# python.version: '3.6.x'
# Python37:
# python.version: '3.x'
# maxParallel: 3

# steps:
# - bash: sudo rm -R -f /usr/local/lib/azureExtensionDir

# - template: templates/run-tests.yml
# parameters:
# pythonVersion: '$(python.version)'

- job: 'Run_Test_Mac'
dependsOn: ['Build_Publish_Azure_CLI_Test_SDK','Build_Publish_Azure_DevOps_CLI_Extension']
Expand Down Expand Up @@ -142,7 +144,7 @@ jobs:

- job: 'Run_Style_Check'
pool:
vmImage: 'Ubuntu-16.04'
vmImage: 'macOS-10.13'

steps:
- task: UsePythonVersion@0
Expand All @@ -167,7 +169,7 @@ jobs:
- job: 'Run_HelpText_Check'
dependsOn: 'Build_Publish_Azure_CLI_Test_SDK'
pool:
vmImage: 'Ubuntu-16.04'
vmImage: 'macOS-10.13'

steps:
- task: UsePythonVersion@0
Expand Down
47 changes: 27 additions & 20 deletions .azure-pipelines/azure-pipelines-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,26 @@ jobs:

- template: templates/build-publish-azure-cli-test-sdk.yml

- job: 'Run_Test_Ubuntu'
dependsOn : Build_Publish_Azure_CLI_Test_SDK
pool:
vmImage: 'Ubuntu-16.04'
strategy:
matrix:
Python27:
python.version: '2.x'
Python36:
python.version: '3.6.8'
Python37:
python.version: '3.x'
maxParallel: 3

steps:
- template: templates/run-tests.yml
parameters:
pythonVersion: '$(python.version)'
# - job: 'Run_Test_Ubuntu'
# dependsOn : Build_Publish_Azure_CLI_Test_SDK
# pool:
# vmImage: 'Ubuntu-16.04'
# strategy:
# matrix:
# Python27:
# python.version: '2.x'
# Python36:
# python.version: '3.6.x'
# Python37:
# python.version: '3.x'
# maxParallel: 3

# steps:
# - bash: sudo rm -R -f /usr/local/lib/azureExtensionDir

# - template: templates/run-tests.yml
# parameters:
# pythonVersion: '$(python.version)'

- job: 'Run_Test_Mac'
dependsOn : Build_Publish_Azure_CLI_Test_SDK
Expand Down Expand Up @@ -84,6 +86,11 @@ jobs:
vmImage: 'vs2017-win2016'

steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script : 'ren "C:\Program Files\Common Files\AzureCliExtensionDirectory" "C:\Program Files\Common Files\AzureCliExtensionDirectory1"'

- template: templates/run-tests.yml
parameters:
pythonVersion: '3.x'
Expand Down Expand Up @@ -128,7 +135,7 @@ jobs:

- job: 'Run_Style_Check'
pool:
vmImage: 'Ubuntu-16.04'
vmImage: 'macOS-10.13'

steps:
- task: UsePythonVersion@0
Expand All @@ -153,7 +160,7 @@ jobs:
- job: 'Run_HelpText_Check'
dependsOn: 'Build_Publish_Azure_CLI_Test_SDK'
pool:
vmImage: 'Ubuntu-16.04'
vmImage: 'macOS-10.13'

steps:
- task: UsePythonVersion@0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
Foreach ($extension in $extensions)
{
Write-Host "installing " $extension.FullName
az extension add --source $extension.FullName -y
az extension add --source $extension.FullName -y --debug
}
Write-Host "done"
workingDirectory: '$(System.ArtifactsDirectory)/extension'

0 comments on commit 1650ca9

Please sign in to comment.