Ruby 通过勺子在AppVeyor CI上安装某些工具时生成错误
我创建了以下内容: 其目的是安装Ruby,但具有:Ruby 通过勺子在AppVeyor CI上安装某些工具时生成错误,ruby,windows,continuous-integration,appveyor,scoop-installer,Ruby,Windows,Continuous Integration,Appveyor,Scoop Installer,我创建了以下内容: 其目的是安装Ruby,但具有: 同样的问题也发生在,例如 请注意,我可以轻松安装其他工具,例如: scoop install curl grep sed less touch python perl 没有任何问题(见此),但它在Ruby和ShellCheck上失败 我遗漏了什么?您描述的错误(构建阶段设置为“MSBuild”模式(默认)…)与Scoop或在安装阶段发生的任何事情无关。默认情况下,AppVeyor尝试检测Visual Studio解决方案或项目。要禁用该行
同样的问题也发生在,例如
请注意,我可以轻松安装其他工具,例如:
scoop install curl grep sed less touch python perl
没有任何问题(见此),但它在Ruby和ShellCheck上失败
我遗漏了什么?您描述的错误(构建阶段设置为“MSBuild”模式(默认)…
)与Scoop或在安装阶段发生的任何事情无关。默认情况下,AppVeyor尝试检测Visual Studio解决方案或项目。要禁用该行为,您可以设置build:off
或将test\u脚本:
重命名为build\u脚本:
这是正在工作的appveyor.yml
:
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install ruby shellcheck
build: off
test_script:
- shellcheck -V
已安装Ruby 2.5.1-2 x64:。你真的也需要安装吗?@ilyaf不知道。然而,在其他工具中也出现了这个错误(例如),所以我更感兴趣的是如何解决它自己的错误,这样它就可以与所有工具一起工作。
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install shellcheck
test_script:
- shellcheck -V
scoop install curl grep sed less touch python perl
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install ruby shellcheck
build: off
test_script:
- shellcheck -V