Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
1,194 additions
and
3,416 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
/tmp/* | ||
/vendor/* | ||
/logs/* | ||
/composer.lock | ||
/plugins/DebugKit | ||
/phpunit.phar | ||
/phpcs.xml | ||
.phpunit* |
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,14 +1,31 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.2 | ||
- 7.3 | ||
|
||
sudo: false | ||
env: | ||
global: | ||
- DEFAULT=1 | ||
|
||
before_script: | ||
- composer install | ||
matrix: | ||
include: | ||
- php: 7.2 | ||
env: PHPCS=1 DEFAULT=0 | ||
|
||
before_install: | ||
- phpenv config-rm xdebug.ini | ||
|
||
install: | ||
- make install-dev | ||
|
||
script: | ||
- if [[ $DEFAULT == 1 ]]; then make test; fi | ||
- if [[ $PHPCS == 1 ]]; then make check-cs; fi | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
notifications: | ||
email: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.PHONY: install-dev test check-cs | ||
|
||
DEV_DEPENDENCIES = cakephp/cakephp:^4.0 \ | ||
cakephp/cakephp-codesniffer:^4.0 \ | ||
mikey179/vfsstream:^1.6 \ | ||
phpunit/phpunit:^8.4 | ||
|
||
install-dev: | ||
composer require --dev $(DEV_DEPENDENCIES) | ||
|
||
test: install-dev | ||
composer test | ||
|
||
check-cs: install-dev | ||
composer cs-check |
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="CakePHP Upgrade"> | ||
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer" /> | ||
|
||
<rule ref="CakePHP" /> | ||
|
||
<!-- | ||
Disable manually until rector is upgrade to nikic/php-parser 5.0 | ||
This is downgrading to cakephp-codesniffer 4.0.0-beta3 intead of 4.0 | ||
--> | ||
<rule ref="PSR12.Files.FileHeader.SpacingAfterBlock"> | ||
<severity>0</severity> | ||
</rule> | ||
<rule ref="PSR12.Files.FileHeader.IncorrectOrder"> | ||
<severity>0</severity> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.IncorrectWhitespaceAfterDeclare"> | ||
<severity>0</severity> | ||
</rule> | ||
</ruleset> |
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.