File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,14 +40,18 @@ before_install:
4040- if [[ "$CHECKJS" == "1" ]]; then export PATH=$HOME/.yarn/bin:$PATH; fi
4141
4242install :
43- - if [[ "$PHPUNIT" == "1" ]]; then composer install --no-interaction; fi
43+ - |
44+ if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
45+ composer install --prefer-dist --no-interaction --ignore-platform-reqs
46+ else
47+ composer install --prefer-dist --no-interaction
48+ fi
4449 - if [[ "$CHECKJS" == "1" ]]; then yarn global add grunt-cli; fi
4550- if [[ "$CHECKJS" == "1" ]]; then yarn install; fi
4651- if [[ "$SECURITY" == "1" ]]; then wget -P $SECURITYCHECK_DIR https://get.sensiolabs.org/security-checker.phar && chmod +x $SECURITYCHECK_DIR/security-checker.phar;fi
4752
4853script :
49- - if find -L . -path ./vendor -prune -o -path ./node_modules -prune -o -name '*.php' -exec php -l {} \; | grep "^[Parse error|Fatal error]"; then exit 1; fi
50- # Run PHPCS separately for the plugin files and the test files.
54+ - composer lint
5155- if [[ "$PHPCS" == "1" ]]; then composer check-cs; fi
5256- if [[ "$CHECKJS" == "1" ]]; then grunt check; fi
5357- if [[ "$PHPUNIT" == "1" ]]; then composer test; fi
Original file line number Diff line number Diff line change 5050 "require-dev" : {
5151 "brain/monkey" : " ^2.4.0" ,
5252 "phpunit/phpunit" : " ^5.4 || ^6.0 || ^7.0" ,
53- "yoast/yoastcs" : " ^2.0.0"
53+ "yoast/yoastcs" : " ^2.0.0" ,
54+ "php-parallel-lint/php-parallel-lint" : " ^1.2" ,
55+ "php-parallel-lint/php-console-highlighter" : " ^0.5"
5456 },
5557 "autoload" : {
5658 "classmap" : [ " inc" ]
6870 }
6971 },
7072 "scripts" : {
73+ "lint" : [
74+ " @php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude node_modules --exclude .git"
75+ ],
7176 "test" : [
7277 " @php ./vendor/phpunit/phpunit/phpunit --colors=always"
7378 ],
You can’t perform that action at this time.
0 commit comments