使用 Travis 构建应用程序时,构建在尝试安装 Angular 后挂起。它通过等待输入来做到这一点。
我浏览了文档,这些文档显示“等待键盘输入或其他类型的人机交互”时确实是这种情况。但我没有选择在任何地方这样做。我的 .travis.yml 是最新的并且符合预期。
我的.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
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
最佳答案
关于angular - Travis build 正在等待用户输入(安装 Angular ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56363203/