WordPress-Coding-Standards/.travis.yml
2015-04-24 14:14:31 +01:00

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