From 449b2ca520212bb6cfe5f459b8b4938f108420c4 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Fri, 26 Aug 2016 17:21:39 +0200 Subject: [PATCH] [.travis.yml][phpcs.xml] Introduce TravisCI + PHP_CodeSniffer --- .travis.yml | 15 ++++++++++++++ phpcs.xml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 .travis.yml create mode 100644 phpcs.xml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..726443f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: php +php: + - '5.4' + - '5.5' + - '5.6' + - '7.0' + - hhvm + - nightly + +install: + - pear install PHP_CodeSniffer + +script: + - phpenv rehash + - phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p \ No newline at end of file diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..635c12d --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,56 @@ + + + Created with the PHP Coding Standard Generator. http://edorian.github.com/php-coding-standard-generator/ + ./bridges + ./css + ./vendor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file