mirror of
https://gh.wpcy.net/https://github.com/wp-cli/scaffold-command.git
synced 2026-05-21 20:31:47 +08:00
26 lines
719 B
Text
26 lines
719 B
Text
machine:
|
|
php:
|
|
version: 5.6.22
|
|
environment:
|
|
WP_TESTS_DIR: /tmp/wordpress-tests-lib
|
|
WP_CORE_DIR: /tmp/wordpress/
|
|
PATH: $HOME/.composer/vendor/bin:$PATH
|
|
|
|
dependencies:
|
|
pre:
|
|
- sudo apt-get update; sudo apt-get install subversion
|
|
|
|
test:
|
|
pre:
|
|
- |
|
|
composer global require wp-coding-standards/wpcs
|
|
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
|
|
override:
|
|
- phpcs --standard=phpcs.ruleset.xml $(find . -name '*.php')
|
|
{{#wp_versions_to_test}}
|
|
- |
|
|
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
|
|
bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 {{.}}
|
|
phpunit
|
|
WP_MULTISITE=1 phpunit
|
|
{{/wp_versions_to_test}}
|