Not OK 1 PhantomJS unexpectedly crashed when running `ember test` on CI

Since upgrading to ember-cli 1.13.8 and Ember 2.0.0 (from 1.13.1 / 1.12.x), I cannot get a test suite to run in CircleCI due to an error:

not ok 1 PhantomJS - Browser "phantomjs /home/ubuntu/app-name/node_modules/ember-cli/node_modules/testem/assets/phantom.js http: // localhost: 7357/7887" exited unexpectedly.
1..1
tests 1
pass 0
fail 1
npm ERR! Test failed. See above for more details.
npm test returned exit code 1

It used to work before, and strangely, it works locally (OS X El Capitan, PhantomJS 2.0). On CircleCI also runs on version 2.0, which is installed as follows:

$ sudo apt-get update; sudo apt-get install 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 -dynamic
$ 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

I also tried to download it from Travis, but the same thing happened.

Any idea what reason and how to solve it?

+4
source share
2 answers

Try running phantomjs individually to find out which dependency fails, I had the same problem in the Docker container, and after starting up I found out that I needed an extra library to run it.

Ubuntu

libgtk2.0-0 libidn11 libglu1-mesa

+2

Ember 2.3.1 PhantomJS , , , - , Ember .

0

Source: https://habr.com/ru/post/1613692/


All Articles