Skip to content

Commit 865d7c5

Browse files
committed
Added phplint script and updated Travis config file.
1 parent 20e5a07 commit 865d7c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ script:
8989
- |
9090
if [[ "$PHPCS" == "1" ]]; then
9191
composer phpcs
92-
composer lint
92+
bash php-lint.sh
9393
fi
9494
9595
if [[ "$NPM_TESTS" == "1" ]]; then

php-lint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
find . -not \( -path ./vendor -prune \) -not \( -path ./php52 -prune \) -type f -name '*.php' -print0 | xargs -0 -n1 -P4 -I {} php -l -n {} | (! grep -v "No syntax errors detected" )

0 commit comments

Comments
 (0)