自从更新到 ember-cli 1.13.8 和 Ember 2.0.0(从 1.13.1 / 1.12.x)以来,我无法让测试套件在 CircleCI 上运行,因为出现错误:
不好 1 PhantomJS - 浏览器“phantomjs /home/ubuntu/app-name/node_modules/ember-cli/node_modules/testem/assets/phantom.js http://localhost:7357/7887”意外退出。 1..1 测试1 通过 0 失败1 npm 错误!测试失败。请参阅上文了解更多详情。 npm 测试返回退出代码 1
它以前可以工作,奇怪的是,它可以在本地工作(OS X El Capitan,PhantomJS 2.0)。在 CircleCI 上,它也运行在 2.0 版本上,安装方式如下:
$ sudo apt-get update; sudo apt-get 安装 libicu52 $curl --output /home/ubuntu/bin/phantomjs-2.0.1-linux-x86_64-dynamic https://s3.amazonaws.com/circle-support-bucket/phantomjs/phantomjs-2.0.1-linux-x86_64 -动态的 $ chmod a+x /home/ubuntu/bin/phantomjs-2.0.1-linux-x86_64-dynamic $ sudo ln -s --force /home/ubuntu/bin/phantomjs-2.0.1-linux-x86_64-dynamic /usr/local/bin/phantomjs
也尝试从 Travis 下载它,但仍然发生同样的事情。
知道原因是什么以及如何解决吗?