switch to local test env

This commit is contained in:
Matthias Pfefferle 2020-02-11 09:58:49 +01:00
parent 16251a2775
commit e0b020d4cc
2 changed files with 12 additions and 1 deletions

View file

@ -7,7 +7,10 @@
"composer/installers": "~1.0" "composer/installers": "~1.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^5.5" "phpunit/phpunit": "^5.5",
"phpcompatibility/php-compatibility": "*",
"squizlabs/php_codesniffer": "3.*",
"wp-coding-standards/wpcs": "^0.14.1"
}, },
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
@ -24,6 +27,12 @@
"composer install", "composer install",
"bin/install-wp-tests.sh wordpress wordpress wordpress", "bin/install-wp-tests.sh wordpress wordpress wordpress",
"vendor/bin/phpunit" "vendor/bin/phpunit"
],
"post-install-cmd": [
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility,vendor/wp-coding-standards/wpcs"
],
"post-update-cmd": [
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility,vendor/wp-coding-standards/wpcs"
] ]
} }
} }

View file

@ -4,6 +4,8 @@
<file>./activitypub.php</file> <file>./activitypub.php</file>
<file>./includes/</file> <file>./includes/</file>
<config name="minimum_supported_wp_version" value="4.7"/> <config name="minimum_supported_wp_version" value="4.7"/>
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />
<exclude-pattern>*\.(inc|css|js|svg)</exclude-pattern> <exclude-pattern>*\.(inc|css|js|svg)</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern> <exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern> <exclude-pattern>*/node_modules/*</exclude-pattern>