From 56eb0b4c454ce3115dffc2edd6c73a0c5720fb4a Mon Sep 17 00:00:00 2001 From: Benjamin Delespierre Date: Sun, 23 Aug 2020 21:20:24 +0200 Subject: [PATCH] adding monitoring configurations --- .scrutinizer.yml | 19 +++++++++++++++++++ .styleci.yml | 4 ++++ .travis.yml | 20 ++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .scrutinizer.yml create mode 100644 .styleci.yml create mode 100644 .travis.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..df16b68 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,19 @@ +filter: + excluded_paths: [tests/*] + +checks: + php: + remove_extra_empty_lines: true + remove_php_closing_tag: true + remove_trailing_whitespace: true + fix_use_statements: + remove_unused: true + preserve_multiple: false + preserve_blanklines: true + order_alphabetically: true + fix_php_opening_tag: true + fix_linefeed: true + fix_line_ending: true + fix_identation_4spaces: true + fix_doc_comments: true + diff --git a/.styleci.yml b/.styleci.yml new file mode 100644 index 0000000..7678db4 --- /dev/null +++ b/.styleci.yml @@ -0,0 +1,4 @@ +preset: php + +disabled: + - single_class_element_per_statement diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8370411 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: php + +php: + - 7.3 + - 7.4 + +env: + matrix: + - COMPOSER_FLAGS="--prefer-lowest" + - COMPOSER_FLAGS="" + +before_script: + - travis_retry composer self-update + - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source + +script: + - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover + +after_script: + - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover