dependencies:
  post:
    - bundle exec bundle-audit update && bundle exec bundle-audit check

test:
  override:
    - bundle exec rspec spec --format progress
    - mkdir -p $CIRCLE_TEST_REPORTS/cucumber
    - bundle exec cucumber --format progress --format json --out $CIRCLE_TEST_REPORTS/cucumber/cucumber.cucumber

  post:
    - bundle exec rake cucumber:web:
        environment:
          RAILS_ENV: test
          TEST_DEPTH: web
    - DEMO=true bundle exec bin/reset_data

machine:
  pre:
    - sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1

dependencies:
  post:
    - bundle exec bundle-audit update && bundle exec bundle-audit check

test:
  override:
    - bundle exec rspec spec --format progress
    - mkdir -p $CIRCLE_TEST_REPORTS/cucumber
    - bundle exec cucumber --format progress --format json --out $CIRCLE_TEST_REPORTS/cucumber/cucumber.cucumber

  post:
    - bundle exec rake cucumber:web:
        environment:
          RAILS_ENV: test
          TEST_DEPTH: web
    - DEMO=true bundle exec bin/reset_data

Add PhantomJS 2.1.1 to the CI build
Add PhantomJS 2.1.1 to the CI build
