diff options
author | Micah Lee <micah@micahflee.com> | 2022-06-19 23:04:28 -0400 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2022-06-19 23:04:28 -0400 |
commit | a54b6beb12436c3b042387d5f193526d7fea4767 (patch) | |
tree | 0991a770b96b605424a1e99418fb98874fbfeb20 | |
parent | 5cbb2b3be4f392ec501b3dba0b7dc2804f69374a (diff) | |
download | onionshare-a54b6beb12436c3b042387d5f193526d7fea4767.tar.gz onionshare-a54b6beb12436c3b042387d5f193526d7fea4767.zip |
Wait for Python to finish installing in Windows before finishing the task
-rw-r--r-- | .circleci/config.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index b12a4e6a..3f7a6b20 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -95,6 +95,15 @@ jobs: cd ~\Downloads Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe -OutFile python-3.9.13-amd64.exe .\python-3.9.13-amd64.exe /quiet InstallAllUsers=1 TargetDir=C:\Python39 + while($true) { + if ((Test-Path -Path C:\Python39\python.exe) -eq $True) { + Write-Output "Python is installed" + break + } else { + Write-Output "Waiting for Python to finish installing ..." + Start-Sleep -Seconds 2 + } + } - run: name: Install poetry @@ -201,6 +210,15 @@ jobs: cd ~\Downloads Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.9.13/python-3.9.13.exe -OutFile python-3.9.13.exe .\python-3.9.13.exe /quiet InstallAllUsers=1 TargetDir=C:\Python39 + while($true) { + if ((Test-Path -Path C:\Python39\python.exe) -eq $True) { + Write-Output "Python is installed" + break + } else { + Write-Output "Waiting for Python to finish installing ..." + Start-Sleep -Seconds 2 + } + } - run: name: Install poetry |