box: wercker/php
build:
  steps:
    - script:
        name: Update apt
        code: sudo apt-get update
    - script:
        name: install GraphViz
        code: sudo apt-get install graphviz php5-xsl
    - script:
        name: install dependencies
        code: composer install --no-interaction
    - script:
        name: download ocular
        code: wget https://scrutinizer-ci.com/ocular.phar
    - script:
        name: unit tests
        code: ./bin/phpunit
    - script:
        name: Upload code coverage report to Scrutinizer
        code: php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

box: wercker/php
build:
  steps:
    - script:
        name: set timezone in PHP
        code: echo 'date.timezone = "Europe/Amsterdam"' >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini
    - script:
        name: Update apt
        code: sudo apt-get update
    - script:
        name: install GraphViz
        code: sudo apt-get install graphviz php5-xsl
    - script:
        name: install dependencies
        code: composer install --no-interaction
    - script:
        name: download ocular
        code: wget https://scrutinizer-ci.com/ocular.phar
    - script:
        name: unit tests
        code: ./bin/phpunit
    - script:
        name: Upload code coverage report to Scrutinizer
        code: php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

Set timezone in the Wercker box to prevent test failures
Set timezone in the Wercker box to prevent test failures
