mirror of
https://gh.wpcy.net/https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-05-06 07:02:23 +08:00
27 lines
567 B
YAML
27 lines
567 B
YAML
sudo: false
|
|
|
|
language:
|
|
- php
|
|
|
|
php:
|
|
- 5.3
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
- nightly
|
|
- hhvm
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- php: nightly
|
|
- php: hhvm
|
|
|
|
before_script:
|
|
- export PHPCS_DIR=/tmp/phpcs
|
|
- export PHPCS_BRANCH=master
|
|
- mkdir -p $PHPCS_DIR && git clone --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git -b $PHPCS_BRANCH $PHPCS_DIR
|
|
- $PHPCS_DIR/scripts/phpcs --config-set installed_paths $(pwd)
|
|
|
|
script:
|
|
- find . \( -name '*.php' \) -exec php -lf {} \;
|
|
- phpunit --filter WordPress /tmp/phpcs/tests/AllTests.php
|