From 142970dad9f4a475f5e59fc6e0657bbfc5c8056f Mon Sep 17 00:00:00 2001 From: God Mod Date: Sun, 21 Dec 2014 12:33:21 +0100 Subject: [PATCH 1/2] Added Tests --- .travis.yml | 32 ++++++++++++++++++++++++++++++++ tests/phplint.sh | 3 +++ 2 files changed, 35 insertions(+) create mode 100644 .travis.yml create mode 100644 tests/phplint.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..33eb2fd --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/tests/phplint.sh b/tests/phplint.sh new file mode 100644 index 0000000..a8584ef --- /dev/null +++ b/tests/phplint.sh @@ -0,0 +1,3 @@ +echo "start php syntax check"; +result=$(find ../ -type f -name \*.php -exec php -l {} \; | grep -ci "Errors parsing ") +exit $result; \ No newline at end of file From 9ea8f349eca247c0fd2e43679acf99e31910ae21 Mon Sep 17 00:00:00 2001 From: God Mod Date: Sun, 21 Dec 2014 12:34:57 +0100 Subject: [PATCH 2/2] Revert "Added Tests" This reverts commit 3512f0ae36e530d0785ba24d61bfda47ae014958. --- .travis.yml | 32 -------------------------------- tests/phplint.sh | 3 --- 2 files changed, 35 deletions(-) delete mode 100644 .travis.yml delete mode 100644 tests/phplint.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 33eb2fd..0000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -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 \ No newline at end of file diff --git a/tests/phplint.sh b/tests/phplint.sh deleted file mode 100644 index a8584ef..0000000 --- a/tests/phplint.sh +++ /dev/null @@ -1,3 +0,0 @@ -echo "start php syntax check"; -result=$(find ../ -type f -name \*.php -exec php -l {} \; | grep -ci "Errors parsing ") -exit $result; \ No newline at end of file