From f78bddd921c17898be642ed1f80f0f1a80a21bb9 Mon Sep 17 00:00:00 2001 From: copynpaste Date: Tue, 27 Jun 2017 22:38:16 +0200 Subject: [PATCH] add phpcs.xml, make travis use the config - close #29 --- .travis.yml | 2 +- phpcs.xml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 phpcs.xml diff --git a/.travis.yml b/.travis.yml index 00096ef..5399029 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ before_script: script: - if [[ "$TRAVIS_PHP_VERSION" == '7.0' ]]; then mkdir -p build/logs && phpunit --coverage-clover build/logs/clover.xml ; fi - if [[ "$TRAVIS_PHP_VERSION" != '7.0' ]]; then vendor/bin/phpunit ; fi - - if [[ "$TRAVIS_PHP_VERSION" == '7.0' ]]; then vendor/bin/phpcs --standard=PSR2 --ignore=vendor/* -n -p . ; fi + - if [[ "$TRAVIS_PHP_VERSION" == '7.0' ]]; then vendor/bin/phpcs ; fi after_script: - if [[ "$TRAVIS_PHP_VERSION" == '7.0' ]]; then php vendor/bin/coveralls -v ; fi diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..72e9907 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,17 @@ + + + Slim coding standard + + + + + + + + + + + + src + tests + \ No newline at end of file