mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-05-18 13:53:35 +02:00
Use coveralls for test coverage
This commit is contained in:
@@ -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"
|
||||
+2
-2
@@ -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
|
||||
|
||||
[](https://travis-ci.com/xPaw/PHP-Source-Query)
|
||||
[](https://codeclimate.com/github/xPaw/PHP-Source-Query/test_coverage)
|
||||
[](https://coveralls.io/github/xPaw/PHP-Source-Query)
|
||||
[](https://packagist.org/packages/xpaw/php-source-query-class)
|
||||
[](https://packagist.org/packages/xpaw/php-source-query-class)
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
"require-dev":
|
||||
{
|
||||
"phpunit/phpunit": "^6.0",
|
||||
"codeclimate/php-test-reporter": "dev-master"
|
||||
"php-coveralls/php-coveralls": "^2.1"
|
||||
},
|
||||
"autoload":
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user