From 59472209305c81eadfec0f4dd00638d8e8c6d890 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 26 Sep 2015 17:23:52 +0100 Subject: [PATCH] code coverage for scrutinizer --- .scrutinizer.yml | 3 +++ .travis.yml | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index b8c0837b..c637b043 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -4,3 +4,6 @@ imports: filter: excluded_paths: [lib/*,ext/tagger/script.js,ext/chatbox/*] + +tools: + external_code_coverage: true diff --git a/.travis.yml b/.travis.yml index 785e53ff..315f3ce9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: php sudo: false +secure: "Td0VfHgdSGrTR96To/OScKikV/kohRclUj1AFi9m0prdFc0q/xP8jZ1EQ0qVtqwkySa9OXsekOBeiQfoqQm+e+aYH6LdBDchqtqYPzl1VAadTAPtk28M9nazl+n7Qf8ftH11WsXTl4JmbjHiwooWV8cRPUM4pQyLBc64Dg8t3vI=" php: # Here is where we can list the versions of PHP you want to test against @@ -25,10 +26,11 @@ install: - if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE shimmie;" -uroot; fi - if [[ "$DB" == "mysql" ]]; then echo ' data/config/auto_install.conf.php ; fi - if [[ "$DB" == "sqlite" ]]; then echo ' data/config/auto_install.conf.php ; fi + - wget https://scrutinizer-ci.com/ocular.phar script: - php install.php - - phpunit --configuration tests/phpunit.xml + - phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover # If a failure occured then dump out a bunch of logs for debugging purposes. after_failure: @@ -42,6 +44,9 @@ after_failure: - ls /var/log/postgresql - cat /var/log/postgresql/postgresql* +after_script: + - php ocular.phar code-coverage:upload --access-token=$SCI_TOKEN --format=php-clover --repository=shish/shimmie2 data/coverage.clover + # configure notifications (email, IRC, campfire etc) #notifications: # irc: "irc.freenode.org#shimmie"