From 6b57d20c9b82eb4e4f5ede6f97db367aca0d6be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 1 Feb 2019 23:59:08 +0100 Subject: [PATCH] Add Codecov support --- .travis.yml | 5 ++++- README.md | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bb8990ec..2b7d3028 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,7 @@ php: install: - travis_retry composer install --no-interaction -script: vendor/bin/phpunit \ No newline at end of file +script: vendor/bin/phpunit --coverage-clover=coverage.xml + +after_success: + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index 43e2fc4b..ef23d722 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ ![Laravel 5.7](https://img.shields.io/badge/laravel-5.7-red.svg) ![Beta - experimental](https://img.shields.io/badge/beta-experimental-yellow.svg) +![Travis CI build](https://travis-ci.com/stancl/tenancy.svg?branch=master) +![codecov](https://codecov.io/gh/stancl/tenancy/branch/master/graph/badge.svg) ### *A Laravel multi-database tenancy implementation that respects your code.*