diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 808021a9..7c7c8454 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,21 +1,10 @@ +filter: + paths: ["src/*"] tools: - php_code_coverage: - test_command: "phpunit -c tests/" - filter: - paths: ["src/*"] - php_sim: - enabled: true - filter: - paths: ["src/*"] - php_mess_detector: - enabled: true - filter: - paths: ["src/*"] - php_pdepend: - enabled: true - filter: - paths: ["src/*"] - php_analyzer: - enabled: true - filter: - paths: ["src/*"] + external_code_coverage: true + php_code_coverage: true + php_sim: true + php_mess_detector: true + php_pdepend: true + php_analyzer: true + php_cpd: true diff --git a/.travis.yml b/.travis.yml index 0115d2b6..42d94911 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,13 @@ php: - 5.3 - 5.4 - 5.5 + - 5.6 - hhvm -before_script: - - cd tests -script: phpunit +script: + - phpunit -c tests/ --coverage-clover=coverage.clover +after_script: + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover coverage.clover +notifications: + - email: true + - irc: "irc.freenode.org#auraphp" diff --git a/README.md b/README.md index 70c07338..b2ca0343 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,8 @@ Alternatively, [download a release](https://github.com/auraphp/Aura.Sql/releases ### Quality -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/badges/quality-score.png?branch=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/) -[![Code Coverage](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/badges/coverage.png?branch=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/badges/quality-score.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/) +[![Code Coverage](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/badges/coverage.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/) [![Build Status](https://travis-ci.org/auraphp/Aura.Sql.png?branch=develop-2)](https://travis-ci.org/auraphp/Aura.Sql) To run the [PHPUnit][] tests at the command line, go to the _tests_ directory and issue `phpunit`.