我正在使用特拉维斯CI自动化单元测试的一个Typescript项目。一切都正常运行在本地,但特拉维斯以下错误消息在最后弹出:特拉维斯CI建立失败 - 幻影JS超时与摩卡
Running "mocha:test" (mocha) task
Testing: Tests/tests.html
Warning: PhantomJS timed out, possibly due to a missing Mocha run() call. Use --force to continue.
https://travis-ci.org/FullScreenShenanigans/ChangeLinr/builds/58349376
.travis.yml:
language: node_js
node_js:
- "0.12"
before_script:
npm install grunt grunt-cli grunt-contrib-copy grunt-contrib-uglify grunt-contrib-clean grunt-zip
script:
grunt
有什么我做错了这里?
非常有趣!感谢您的答案,但我最终以不同的方式解决问题。无法跟上摩卡版本的更新将会是一个杀手锏。 – Josh