diff --git a/.travis.yml b/.travis.yml index c7df1e309..e4d835d3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,11 +15,14 @@ matrix: env: TESTDB=SQLITE before_script: + - pear install pear/PHP_CodeSniffer + - phpenv rehash - ./tests/travis/before_script ~/builds/ss - cd ~/builds/ss script: - phpunit -c phpunit.xml.dist + - phpcs --encoding=utf-8 --tab-width=4 --standard=framework/tests/phpcs -np framework notifications: irc: diff --git a/tests/phpcs/ruleset.xml b/tests/phpcs/ruleset.xml new file mode 100644 index 000000000..7d70c93cd --- /dev/null +++ b/tests/phpcs/ruleset.xml @@ -0,0 +1,38 @@ + + + CodeSniffer ruleset for SilverStripe coding conventions. + + + */css/* + css/* + + + thirdparty/* + */jquery-changetracker/* + parsers/HTML/BBCodeParser/* + + + */SSTemplateParser.php$ + + + 8 + + + + + + + + 7 + + + 8 + + + + + + + + +