general:
  branches:
    ignore:
      - gh-pages

machine:
  services:
    - docker

dependencies:
  pre:
    - sudo apt-get --yes -qq update
    - sudo apt-get --yes -qq install jq
    - docker pull postgres:9.3
    - docker pull mysql:5.6
    - docker pull java:8

database:
  override:
    - bin/setup_databases

test:
  pre:
    - bin/prepare

deployment:
  newest-version:
    branch: master
    commands:
      - bin/deploy

general:
  branches:
    ignore:
      - gh-pages

machine:
  services:
    - docker

dependencies:
  pre:
    - sudo apt-get --yes -qq update
    - sudo apt-get --yes -qq install jq 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
    - docker pull postgres:9.3
    - docker pull mysql:5.6
    - docker pull java:8

database:
  override:
    - bin/setup_databases

test:
  pre:
    - bin/prepare

deployment:
  newest-version:
    branch: master
    commands:
      - bin/deploy

Update to Circle CI configuration
Update to Circle CI configuration

Hopefully this will fix the problems with PhantomJS crashing thanks to support from Circle