.travis.yml
language: php
php:
- 5.5
- 5.6
before_script:
- composer self-update
- composer install --prefer-source
- mv phpunit.xml.dist phpunit.xml
script:
- ./vendor/bin/phpcs --standard=PSR2 ./src/ -n
- ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/test-reporter --stdout > codeclimate.json
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v1.0.1-dev)' https://codeclimate.com/test_reports"