Added steps to clean up conda envs_dir to ensure that no build artifacts are leftover. (#505)
This commit is contained in:
Родитель
c62b79879d
Коммит
c0e2d0c756
|
@ -17,19 +17,8 @@ jobs:
|
|||
name: cvbp-win-bare
|
||||
|
||||
steps:
|
||||
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
|
||||
displayName: Add conda to PATH
|
||||
|
||||
- template: templates/unit-test-steps-windows.yml # Template reference
|
||||
|
||||
- script: |
|
||||
call conda env remove -n cv -y
|
||||
if exist C:\Anaconda\envs\cv rmdir /s /q C:\Anaconda\envs\cv
|
||||
|
||||
workingDirectory: tests
|
||||
displayName: 'Conda remove'
|
||||
timeoutInMinutes: 10
|
||||
|
||||
- script: |
|
||||
del /q /S %LOCALAPPDATA%\Temp\*
|
||||
for /d %%i in (%LOCALAPPDATA%\Temp\*) do @rmdir /s /q "%%i"
|
||||
|
|
|
@ -17,14 +17,6 @@ jobs:
|
|||
|
||||
steps:
|
||||
- template: templates/unit-test-steps-windows.yml # Template reference
|
||||
|
||||
- script: |
|
||||
call conda env remove -n cv -y
|
||||
if exist C:\Anaconda\envs\cv rmdir /s /q C:\Anaconda\envs\cv
|
||||
|
||||
workingDirectory: tests
|
||||
displayName: 'Conda remove'
|
||||
timeoutInMinutes: 10
|
||||
|
||||
- script: |
|
||||
del /q /S %LOCALAPPDATA%\Temp\*
|
||||
|
|
|
@ -29,6 +29,16 @@ steps:
|
|||
displayName: 'Clean up the newly created environment'
|
||||
condition: always()
|
||||
|
||||
- script: |
|
||||
IF EXIST C:\ProgramData\Miniconda3\envs\cv (
|
||||
echo Removing conda environment directory...
|
||||
rmdir /s /q C:\ProgramData\Miniconda3\envs\cv
|
||||
) ELSE (
|
||||
echo Conda environment directory is clean.
|
||||
)
|
||||
displayName: 'Ensure conda environment directory is clean'
|
||||
condition: always()
|
||||
|
||||
- script: |
|
||||
conda env list
|
||||
displayName: 'List conda environments to verify cleanup of the new environment'
|
||||
|
|
Загрузка…
Ссылка в новой задаче