From 3412fdfac19fadbb6eabca4c53ee0651d6c0684d Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Sun, 17 Sep 2017 09:25:13 +0200 Subject: [PATCH] Enable PHP CodeSniffer in travis testing --- .travis.yml | 3 +-- phpcs.xml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 phpcs.xml diff --git a/.travis.yml b/.travis.yml index cb5087ec8..cdb7055fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,6 +42,5 @@ before_script: script: # also see: modules/test/application/clicommands/PhpCommand.php - # phpcs is disabled until fixed... - # - php phpcs.phar -p --standard=icingaweb2.ruleset.xml --extensions=php --encoding=utf-8 application/ library/Icinga modules/ test/ + - php phpcs.phar - php phpunit.phar -c modules/test/phpunit.xml --verbose diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 000000000..e04ad72f8 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,23 @@ + + + Sniff our code a while + + application/ + library/Icinga + modules/ + test/ + + vendor/* + application/fonts/fontello-ifont/* + + + + + + + + + + + +