language: php

php:
    - 5.4
    - 5.5
    - 5.6
    - 7.0
    - hhvm

matrix:
    allow_failures:
        - php: 7.0
    fast_finish: true

before_script:
    - composer self-update
    - composer install --prefer-source

script:
    - ./vendor/bin/phpunit

after_script:
    - ./vendor/bin/test-reporter --coverage-report coverage/clover.xml

language: php

php:
    - 5.4
    - 5.5
    - 5.6
    - 7.0
    - hhvm

matrix:
    allow_failures:
        - php: 7.0
    fast_finish: true

before_script:
    - composer self-update
    - composer install --prefer-source

script:
    - ./vendor/bin/phpunit

after_script:
    - ./vendor/bin/test-reporter --coverage-report coverage/clover.xml --stdout > codeclimate.json
    - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"

Fix to code coverage reporting
Fix to code coverage reporting
