Use coveralls for test coverage

pull/146/head
Pavel Djundik 6 years ago
parent d36c10a326
commit 724f047a4a

@ -1,4 +0,0 @@
#!/usr/bin/env sh
php 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 v0.1.1)' https://codeclimate.com/test_reports

@ -1,22 +0,0 @@
engines:
phpcodesniffer:
enabled: true
config:
file_extensions: "php"
phpmd:
enabled: true
config:
file_extensions: "php"
standard: "PSR1,Squiz"
checks:
Controversial/CamelCaseMethodName:
enabled: false
Controversial/CamelCaseParameterName:
enabled: false
Controversial/CamelCaseVariableName:
enabled: false
Controversial/CamelCasePropertyName:
enabled: false
ratings:
paths:
- "SourceQuery/**.php"

@ -1,7 +1,7 @@
sudo: false
language: php
php:
- 7.2
- 7.3
notifications:
email: false
@ -11,4 +11,4 @@ install:
script:
- ./vendor/bin/phpunit --configuration Tests/phpunit.xml
after_script:
- ./.codeclimate.sh
- travis_retry ./vendor/bin/php-coveralls

@ -1,7 +1,7 @@
# PHP Source Query
[![Build Status](https://img.shields.io/travis/com/xPaw/PHP-Source-Query.svg)](https://travis-ci.com/xPaw/PHP-Source-Query)
[![Test Coverage](https://api.codeclimate.com/v1/badges/24858a13b82113ad3092/test_coverage)](https://codeclimate.com/github/xPaw/PHP-Source-Query/test_coverage)
[![Test Coverage](https://img.shields.io/coveralls/github/xPaw/PHP-Source-Query/master.svg)](https://coveralls.io/github/xPaw/PHP-Source-Query)
[![Packagist Downloads](https://img.shields.io/packagist/dt/xpaw/php-source-query-class.svg)](https://packagist.org/packages/xpaw/php-source-query-class)
[![Packagist Version](https://img.shields.io/packagist/v/xpaw/php-source-query-class.svg)](https://packagist.org/packages/xpaw/php-source-query-class)

@ -30,7 +30,7 @@
"require-dev":
{
"phpunit/phpunit": "^6.0",
"codeclimate/php-test-reporter": "dev-master"
"php-coveralls/php-coveralls": "^2.1"
},
"autoload":
{

Loading…
Cancel
Save