-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from php-api-clients/improvement-handle-disconn…
…ects-and-reconnect-when-appropriate Improvement handle disconnects and reconnect when appropriate
- Loading branch information
Showing
25 changed files
with
1,869 additions
and
482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php declare(strict_types=1); | ||
|
||
use ApiClients\Tools\TestUtilities\PhpCsFixerConfig; | ||
|
||
return (function () | ||
{ | ||
$path = __DIR__ . DIRECTORY_SEPARATOR; | ||
$paths = [ | ||
$path . 'src', | ||
$path . 'tests', | ||
]; | ||
|
||
return PhpCsFixerConfig::create() | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->in($paths) | ||
->append($paths) | ||
) | ||
->setUsingCache(false) | ||
; | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,32 @@ | ||
all: cs unit | ||
travis: cs travis-unit | ||
contrib: cs unit | ||
all: | ||
composer run-script qa-all --timeout=0 | ||
|
||
all-coverage: | ||
composer run-script qa-all-coverage --timeout=0 | ||
|
||
ci: | ||
composer run-script qa-ci --timeout=0 | ||
|
||
ci-extended: | ||
composer run-script qa-ci-extended --timeout=0 | ||
|
||
contrib: | ||
composer run-script qa-contrib --timeout=0 | ||
|
||
init: | ||
if [ ! -d vendor ]; then composer install; fi; | ||
composer ensure-installed | ||
|
||
cs: | ||
composer cs | ||
|
||
cs: init | ||
./vendor/bin/phpcs --standard=PSR2 src/ | ||
cs-fix: | ||
composer cs-fix | ||
|
||
unit: init | ||
./vendor/bin/phpunit --coverage-text --coverage-html covHtml | ||
unit: | ||
composer run-script unit --timeout=0 | ||
|
||
travis-unit: init | ||
./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml | ||
unit-coverage: | ||
composer run-script unit-coverage --timeout=0 | ||
|
||
travis-coverage: init | ||
if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi | ||
ci-coverage: init | ||
composer ci-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.