Set environment variable SKIP=swimm-verify in Windows deployment script so pre-commit skips swimm-verify

This commit is contained in:
shreyamalviya 2021-04-27 17:50:38 +05:30
parent 60f776fef9
commit ba3317b252
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,10 @@ function Configure-precommit([String] $git_repo_dir)
exit exit
} }
Pop-Location Pop-Location
# Set env variable to skip Swimm verification during pre-commit, Windows not supported yet
[System.Environment]::SetEnvironmentVariable('SKIP','swimm-verify',[System.EnvironmentVariableTarget]::User)
Write-Output "Pre-commit successfully installed" Write-Output "Pre-commit successfully installed"
} }
@ -273,6 +277,7 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName,
$webClient.DownloadFile($SWIMM_URL, $swimm_filename) $webClient.DownloadFile($SWIMM_URL, $swimm_filename)
Start-Process $swimm_filename Start-Process $swimm_filename
"Script finished" "Script finished"
} }