-
Notifications
You must be signed in to change notification settings - Fork 6
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 #195 from akirk/test-php-compatibility
Update PHPCompatibility and restrict PHPUnit
- Loading branch information
Showing
9 changed files
with
76 additions
and
68 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,52 +1,51 @@ | ||
{ | ||
"name": "akirk/enable-mastodon-apps", | ||
"description": "A WordPress plugin that implements the Mastodon API to enable access through Mastodon apps", | ||
"type": "wordpress-plugin", | ||
"license": "GPL-2.0-or-later", | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "*", | ||
"phpcompatibility/php-compatibility": "*", | ||
"wp-coding-standards/wpcs": "*", | ||
"yoast/phpunit-polyfills": "*", | ||
"php-parallel-lint/php-parallel-lint": "^1.3", | ||
"phpunit/phpunit": "*", | ||
"akirk/extract-wp-hooks": "*" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"prefer-stable": true, | ||
"scripts": { | ||
"lint7": [ | ||
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git --exclude src/Exceptions/Error.php --exclude src/Exceptions/TypeError.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php" | ||
], | ||
"lint-lt70": [ | ||
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git --exclude src/TestCases/TestCasePHPUnitGte8.php --exclude src/TestListeners/TestListenerDefaultImplementationPHPUnitGte7.php --exclude tests/Polyfills/Fixtures/ChildValueObject.php --exclude tests/Polyfills/Fixtures/ValueObject.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php" | ||
], | ||
"lint-gte80": [ | ||
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git" | ||
], | ||
"check-cs": [ | ||
"@php ./vendor/bin/phpcs" | ||
], | ||
"fix-cs": [ | ||
"@php ./vendor/bin/phpcbf" | ||
], | ||
"test": [ | ||
"@php ./vendor/phpunit/phpunit/phpunit --testdox --no-coverage" | ||
], | ||
"docker-test": [ | ||
"composer install", | ||
"bin/install-wp-tests.sh ema-test root ema-test test-db latest true", | ||
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage" | ||
], | ||
"update-wiki": [ | ||
"test -d ../enable-mastodon-apps.wiki && php ./vendor/akirk/extract-wp-hooks/extract-wp-hooks.php && cd ../enable-mastodon-apps.wiki/ && git add . && git commit -m 'Update hooks'; git push" | ||
] | ||
}, | ||
"require": { | ||
"bshaffer/oauth2-server-php": "^1.10" | ||
} | ||
"name": "akirk/enable-mastodon-apps", | ||
"description": "A WordPress plugin that implements the Mastodon API to enable access through Mastodon apps", | ||
"license": "GPL-2.0-or-later", | ||
"require-dev": { | ||
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99", | ||
"phpcompatibility/phpcompatibility-wp": "*", | ||
"wp-coding-standards/wpcs": "*", | ||
"yoast/phpunit-polyfills": "*", | ||
"php-parallel-lint/php-parallel-lint": "^1.3", | ||
"phpunit/phpunit": "9.*", | ||
"akirk/extract-wp-hooks": "*" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"prefer-stable": true, | ||
"scripts": { | ||
"lint7": [ | ||
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git --exclude src/Exceptions/Error.php --exclude src/Exceptions/TypeError.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php" | ||
], | ||
"lint-lt70": [ | ||
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git --exclude src/TestCases/TestCasePHPUnitGte8.php --exclude src/TestListeners/TestListenerDefaultImplementationPHPUnitGte7.php --exclude tests/Polyfills/Fixtures/ChildValueObject.php --exclude tests/Polyfills/Fixtures/ValueObject.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php" | ||
], | ||
"lint-gte80": [ | ||
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git" | ||
], | ||
"check-cs": [ | ||
"@php ./vendor/bin/phpcs" | ||
], | ||
"fix-cs": [ | ||
"@php ./vendor/bin/phpcbf" | ||
], | ||
"test": [ | ||
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage" | ||
], | ||
"docker-test": [ | ||
"composer install", | ||
"bin/install-wp-tests.sh ema-test root ema-test test-db latest true", | ||
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage" | ||
], | ||
"update-wiki": [ | ||
"test -d ../enable-mastodon-apps.wiki && php ./vendor/akirk/extract-wp-hooks/extract-wp-hooks.php && cd ../enable-mastodon-apps.wiki/ && git add . && git commit -m 'Update hooks'; git push" | ||
] | ||
}, | ||
"require": { | ||
"bshaffer/oauth2-server-php": "^1.10" | ||
} | ||
} |
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
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