Skip to content

Commit de4cc8a

Browse files
committed
Add coverall and badges
1 parent d74982a commit de4cc8a

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service_name: travis-ci

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/vendor
2+
/build
23
composer.phar
34
composer.lock
45
.DS_Store

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ before_script:
1010
- travis_retry composer self-update
1111
- travis_retry composer install --prefer-source --no-interaction --dev
1212

13-
script: phpunit
13+
script:
14+
- mkdir -p build/logs
15+
- phpunit --coverage-clover build/logs/clover.xml
16+
17+
after_success:
18+
- if [[ "$TRAVIS_PHP_VERSION" != *hhvm* ]]; then php vendor/bin/coveralls -v; fi

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Bogardo\Multiauth
22

3+
[![Latest Stable Version](https://img.shields.io/github/release/Bogardo/Multiauth.svg?style=flat)](https://packagist.org/packages/bogardo/multiauth)
4+
[![MIT License](https://img.shields.io/packagist/l/Bogardo/Multiauth.svg?style=flat)](https://packagist.org/packages/bogardo/multiauth)
5+
[![Build Status](https://travis-ci.org/Bogardo/Multiauth.svg?branch=master)](https://travis-ci.org/Bogardo/Multiauth)
6+
[![Coverage Status](https://coveralls.io/repos/Bogardo/Multiauth/badge.svg)](https://coveralls.io/r/Bogardo/Multiauth)
7+
38
> This is a work in progress and should probably not be used in production yet.
49
510
Laravel authentication driver which enables you to use multiple Eloquent models for authentication.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
},
2020
"require-dev": {
2121
"phpunit/phpunit": "~4.0",
22-
"orchestra/testbench": "2.2.*"
22+
"orchestra/testbench": "2.2.*",
23+
"satooshi/php-coveralls": "dev-master"
2324
},
2425
"autoload": {
2526
"psr-4": {

0 commit comments

Comments
 (0)