env:
global:
- CC_TEST_REPORTER_ID=9bc80979b7edd91459812f11edc6c34ff10fdf1f5fcf008b488ffc8b1be77ad6
notifications:
slack: a7madsa3d:NV7CXXB4FMHOLUIuBQ81RbQe
language: php
php:
- 7.1.9
before_script:
- composer self-update
- composer require codeclimate/php-test-reporter --dev
- composer install
script:
- vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
after_script:
- CODECLIMATE_REPO_TOKEN=9bc80979b7edd91459812f11edc6c34ff10fdf1f5fcf008b488ffc8b1be77ad6 vendor/bin/test-reporter --stdout > codeclimate.json
- "sh -c 'curl -X POST -d @codeclimate.json -H \"Content-Type: application/json\" -H \"User-Agent: Code Climate PHP Test reporter\" https://codeclimate.com/test_reports ;'"
|