.travis.yml
language: php
matrix:
allow_failures:
- php: 7.0
php:
- 5.5
- 5.6
- 7.0
before_script:
- composer self-update
- composer install --dev --prefer-source
script:
- ./vendor/bin/phpunit --coverage-clover ../build/logs/clover.xml
- ./vendor/bin/phpcs --standard=PSR2 ./src/ ./test/ -n
- ./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"