machine:
  timezone: UTC
  php:
    version: 5.6.2

dependencies:
  pre:
    # Enable XDebug.
    - sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini

test:
  override:
    - phpunit --coverage-html $CIRCLE_ARTIFACTS/coverage

general:
  artifacts:
    - "build/"

deployment:
  build_phar:
    branch: master
    commands:
      - vendor/bin/box build
machine:
  timezone: UTC
  php:
    version: 5.6.2

dependencies:
  pre:
    # Enable xdebug
    - sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini
    # Disable phar.readonly
    - sed -i 's/^;phar.readonly/phar.readonly/' ~/.phpenv/versions/$(phpenv global)/etc/php.ini
    - sed -i 's/phar.readonly\s=\sOn/phar.readonly = Off/' ~/.phpenv/versions/$(phpenv global)/etc/php.ini

test:
  override:
    - phpunit --coverage-html $CIRCLE_ARTIFACTS/coverage

general:
  artifacts:
    - "build/"

deployment:
  build_phar:
    branch: master
    commands:
      - vendor/bin/box build
Disable phar.readonly in CircleCI for Box phar building
Disable phar.readonly in CircleCI for Box phar building
