Travis版本正在挂起,等待用户输入(安装角度) [英] Travis build is hanging waiting for user input (To install angular)

查看:198
本文介绍了Travis版本正在挂起,等待用户输入(安装角度)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Travis构建应用程序时,该构建在尝试安装angular后会挂起.它通过等待输入来执行此操作.

When building the app with Travis, the build hangs after it tries to install angular. It does this by waiting for input.

我浏览了一些文档,这些文档表明等待键盘输入或其他类型的人机交互"确实如此.但是我无处可去.我的.travis.yml是最新的,可以完成预期的工作.

I have gone through the docs which show that this is indeed the case when "Waiting for keyboard input or other kind of human interaction". But I get no option of doing this anywhere. My .travis.yml is up to date and does what is expected.

我的.yml代码

language: node_js
node_js:
  - "11.0"
sudo: required
branches:
  only:
    - master
before_script:
  - npm install -g --silent firebase-tools
  - npm install -g @angular/cli
script:
  - npm install
  - ng build --prod
deploy:
  skip_cleanup: true
  provider: firebase
  token:
    secure: "1/St7DD3G1QTmK-hdghJoK4cS348_bxklRqbuM3t7KGuE"

after_success:
  - firebase deploy --token "1/St7DD3G1QTmK-hdghJoK4cS348_bxklRqbuM3t7KGuE" --non-interactive

您想与Angular小组共享匿名使用情况数据吗? 根据Google的《隐私权政策》,位于 https://policies.google.com/privacy ?有关更多详细信息以及如何 更改此设置,请参见 http://angular.io/analytics . (是/否)无输出 已在最近的10个月内收到,这可能表示 停滞的构建或构建本身有问题.检查 有关如何在以下方面调整构建配置的详细信息: https ://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received 构建已终止

Would you like to share anonymous usage data with the Angular Team at Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more details and how to change this setting, see http://angular.io/analytics. (y/N) No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself. Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received The build has been terminated

推荐答案

您需要将此添加到您的.travis.yml文件中:

You need add this in your .travis.yml file:

before_script:
  - export NG_CLI_ANALYTICS=ci

您可以在此处找到可供使用的在线示例

You can find here a online sample ready for use.

这篇关于Travis版本正在挂起,等待用户输入(安装角度)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆