summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-02-19 12:42:23 +0100
committerMichal Čihař <michal@cihar.com>2016-02-19 12:42:23 +0100
commit4105f665d3932e2ce3aaab19e1a4e7416873769f (patch)
treeb45c7716e1ea07408aed539a5e1a54cc3ccb877e
parent22debcf27a870b946daf57565af32cf4aa73f5d9 (diff)
downloadsql-parser-4105f665d3932e2ce3aaab19e1a4e7416873769f.zip
sql-parser-4105f665d3932e2ce3aaab19e1a4e7416873769f.tar.gz
sql-parser-4105f665d3932e2ce3aaab19e1a4e7416873769f.tar.bz2
Add codecov for coverage reports
It can report changes in coverage for PRs. Signed-off-by: Michal Čihař <michal@cihar.com>
-rw-r--r--.travis.yml4
-rw-r--r--README.md3
2 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 62c6b7f..7ac0f4a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,7 @@ sudo: false
before_install:
- travis_retry composer self-update && composer --version
+ - pip install --user codecov
install:
- travis_retry composer install
@@ -30,6 +31,9 @@ after_script:
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
fi
+after_success:
+ - codecov
+
cache:
directories:
- $HOME/.composer/cache
diff --git a/README.md b/README.md
index 25df8b7..cef1540 100644
--- a/README.md
+++ b/README.md
@@ -6,8 +6,9 @@ A validating SQL lexer and parser with a focus on MySQL dialect.
[![Build Status](https://travis-ci.org/phpmyadmin/sql-parser.svg?branch=master)](https://travis-ci.org/phpmyadmin/sql-parser)
[![Code Coverage](https://scrutinizer-ci.com/g/phpmyadmin/sql-parser/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/phpmyadmin/sql-parser/?branch=master)
+[![codecov.io](https://codecov.io/github/phpmyadmin/sql-parser/coverage.svg?branch=master)](https://codecov.io/github/phpmyadmin/sql-parser?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/phpmyadmin/sql-parser/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/phpmyadmin/sql-parser/?branch=master)
## More information
-This library was originally during the Google Summer of Code 2015 and has been used by phpMyAdmin since version 4.5. \ No newline at end of file
+This library was originally during the Google Summer of Code 2015 and has been used by phpMyAdmin since version 4.5.