1 Star 6 Fork 0

justjavac / deno

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install_test.ps1 2.33 KB
一键复制 编辑 原始数据 按行查看 历史
justjavac 提交于 2021-10-09 09:22 . fix test for win64
#!/usr/bin/env pwsh
$ErrorActionPreference = 'Stop'
# Test that we can install the latest version at the default location.
Remove-Item "~\.deno" -Recurse -Force -ErrorAction SilentlyContinue
$env:DENO_INSTALL = ""
$v = $null; .\install.ps1
~\.deno\bin\deno.exe --version
# Test that we can install a specific version at a custom location.
Remove-Item "~\deno-1.10.0" -Recurse -Force -ErrorAction SilentlyContinue
$env:DENO_INSTALL = "$Home\deno-1.10.0"
$v = "1.10.0"; .\install.ps1
$DenoVersion = ~\deno-1.10.0\bin\deno.exe --version
if (!($DenoVersion -like '*1.10.0*')) {
throw $DenoVersion
}
# Test that we can install at a relative custom location.
Remove-Item "bin" -Recurse -Force -ErrorAction SilentlyContinue
$env:DENO_INSTALL = "."
$v = "1.14.0"; .\install.ps1
$DenoVersion = bin\deno.exe --version
if (!($DenoVersion -like '*1.14.0*')) {
throw $DenoVersion
}
# Test that the old temp file installer still works.
Remove-Item "~\deno-1.10.1" -Recurse -Force -ErrorAction SilentlyContinue
$env:DENO_INSTALL = "$Home\deno-1.10.1"
$v = $null; .\install.ps1 v1.10.1
$DenoVersion = ~\deno-1.10.1\bin\deno.exe --version
if (!($DenoVersion -like '*1.10.1*')) {
throw $DenoVersion
}
TypeScript
1
https://gitee.com/justjavac/deno.git
git@gitee.com:justjavac/deno.git
justjavac
deno
deno
main

搜索帮助