-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
God Mod
committed
Dec 24, 2014
1 parent
0aee95c
commit db9e44e
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
language: php | ||
php: | ||
- "5.5" | ||
- "5.4" | ||
|
||
before_script: | ||
#- pyrus install pear/PHP_CodeSniffer | ||
## PHP Copy/Paste Detector | ||
#- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar | ||
## PHP Mess Detector | ||
#- pear config-set preferred_state beta | ||
#- printf "\n" | pecl install imagick | ||
#- pear channel-discover pear.phpmd.org | ||
#- pear channel-discover pear.pdepend.org | ||
#- pear install --alldeps phpmd/PHP_PMD | ||
#- phpenv rehash | ||
|
||
script: | ||
#- phpcs --standard=PHPCS --extensions=php --ignore=vendor ./ | ||
#- phpunit --configuration tests/phpunit.xml | ||
## PHP Copy/Paste Detector | ||
#- php phpcpd.phar ./ --verbose | ||
## PHP Mess Detector | ||
#- phpmd ./ | ||
#- find ./ -type f -name \*.php -exec php -l {} \; | grep "Errors parsing "; | ||
- chmod -R 777 ./tests/phplint.sh | ||
- ./tests/phplint.sh | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
fast_finish: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
echo "start php syntax check"; | ||
result=$(find ../ -type f -name \*.php -exec php -l {} \; | grep -ci "Errors parsing ") | ||
exit $result; |