language: php

php:
  - 5.4
  - 5.5
  - 5.6

before_script:
  - composer self-update
  - composer install --no-interaction

script:
  - vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
  - bash -c 'if [ $(phpenv version-name) = "5.6" ]; then vendor/bin/test-reporter; fi;'

language: php

php:
  - 5.4
  - 5.5
  - 5.6

before_script:
  - composer self-update
  - composer install --no-interaction

script:
  - vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
  - bash -c 'if [ $(phpenv version-name) = "5.6" ]; then vendor/bin/test-reporter --stdout > codeclimate.json; fi;'
  - "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 problem with test reporting
Fix problem with test reporting
