Skip to content

Commit

Permalink
Added Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
God Mod committed Dec 24, 2014
1 parent 0aee95c commit db9e44e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .travis.yml
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
3 changes: 3 additions & 0 deletions tests/phplint.sh
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;

0 comments on commit db9e44e

Please sign in to comment.