Commit 13bc7daf authored by Matt Clarkson's avatar Matt Clarkson

Issue #1: On Windows force removal for non-empty dir.

parent 98266109
......@@ -124,7 +124,7 @@ windows build:
- hostname
- whoami
- cmake -version
- if (Test-Path ${Env:sb_dir}) { Remove-Item ${Env:sb_dir} -Recurse; }
- if (Test-Path ${Env:sb_dir}) { Remove-Item ${Env:sb_dir} -Recurse -Force; }
- mkdir ${Env:sb_dir}
- cd ${Env:sb_dir}
- python.exe -m venv continuousenv
......@@ -180,5 +180,5 @@ windows cleanup:
script:
- ${Env:sb_dir} = "C:\gitlab-runner\scikit-surgerygpucpp-${Env:git_hash}-sb"
- if (Test-Path ${Env:sb_dir}) { Remove-Item ${Env:sb_dir} -Recurse; if ($LastExitCode -ne 0) {throw $LastExitCode} }
- if (Test-Path ${Env:sb_dir}) { Remove-Item ${Env:sb_dir} -Recurse -Force; if ($LastExitCode -ne 0) {throw $LastExitCode} }
- if ($LastExitCode -ne 0) {throw $LastExitCode}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment