Automattic / babble

Multilingual WordPress done right.
https://wordpress.org/plugins/babble/
245 stars 50 forks source link

Fix PHP Linting #286

Closed simonwheatley closed 9 years ago

simonwheatley commented 9 years ago

The current linting does not appear to use a non-zero exit, which is needed to fail Travis tests.

Correct line:

    if [[ "$WP_VERSION" == "latest" ]]; then if find . -not \( -path ./vendor -prune \) -not \( -path ./features -prune \) -name "*.php" -exec php -l {} \; | grep "^[Parse error|Fatal error]"; then exit 1; fi; fi;
simonwheatley commented 9 years ago

Awaiting the results of a deliberate syntax error from this Travis build