首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过Scoop在AppVeyor CI上安装某些工具时生成错误

通过Scoop在AppVeyor CI上安装某些工具时生成错误
EN

Stack Overflow用户
提问于 2018-07-18 00:43:58
回答 1查看 474关注 0票数 1

我创建了以下文件

代码语言:javascript
复制
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install ruby

它的目标是安装Ruby,但是构建失败具有:

代码语言:javascript
复制
scoop install ruby
Installing 'ruby' (2.5.1-2) [64bit]
Downloading https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.1-2/rubyinstaller-2.5.1-2-x64.7z (8.8 MB)...
Checking hash of rubyinstaller-2.5.1-2-x64.7z... ok.
Extracting... done.
Linking ~\scoop\apps\ruby\current => ~\scoop\apps\ruby\2.5.1-2
Persisting gems
Running post-install script...
Successfully installed rake-12.3.1
Parsing documentation for rake-12.3.1
Installing ri documentation for rake-12.3.1
Done installing documentation for rake after 0 seconds
1 gem installed
'ruby' (2.5.1-2) was installed successfully!
Notes
-----
Install MSYS2 via 'scoop install msys2' and then run 'ridk install' to install the toolchain!
'ruby' suggests installing 'msys2'.
The build phase is set to "MSBuild" mode (default), but no Visual Studio project or solution files were found in the root directory. If you are not building Visual Studio project switch build mode to "Script" and provide your custom build command.

同样的问题也发生在shellcheck上。

代码语言:javascript
复制
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install shellcheck
test_script:
- shellcheck -V

请注意,我可以轻松地安装其他工具,例如:

代码语言:javascript
复制
scoop install curl grep sed less touch python perl

没有任何问题(请参阅此构建),但它在Ruby上失败。

我遗漏了什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-07-20 01:11:02

您描述的错误(The build phase is set to "MSBuild" mode (default)...)与Scoop或在install阶段发生的任何事情无关。默认情况下,AppVeyor试图检测Visual解决方案或项目。要禁用该行为,可以设置build: off或将test_script:重命名为build_script:

这是工作的appveyor.yml

代码语言:javascript
复制
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install ruby shellcheck
build: off
test_script:
- shellcheck -V
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51391973

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档