Skip to content
This repository was archived by the owner on Dec 6, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src_dir: src
coverage_clover: build/logs/clover.xml
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
humbug.log
/vendor
composer.lock
composer.lock
build/
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ php:
before_script:
- composer install

script: phpunit
script: phpunit --coverage-clover build/logs/clover.xml

after_script:
- php vendor/bin/coveralls -v
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# smarty-partition
[![Build Status](https://travis-ci.org/limenet/smarty-partition.svg?branch=master)](https://travis-ci.org/limenet/smarty-partition) [![Latest Stable Version](https://poser.pugx.org/limenet/smarty-partition/v/stable)](https://packagist.org/packages/limenet/smarty-partition) [![License](https://poser.pugx.org/limenet/smarty-partition/license)](https://packagist.org/packages/limenet/smarty-partition) [![Total Downloads](https://poser.pugx.org/limenet/smarty-partition/downloads)](https://packagist.org/packages/limenet/smarty-partition) [![StyleCI](https://styleci.io/repos/29427550/shield)](https://styleci.io/repos/29427550)
[![Build Status](https://travis-ci.org/limenet/smarty-partition.svg?branch=master)](https://travis-ci.org/limenet/smarty-partition) [![Latest Stable Version](https://poser.pugx.org/limenet/smarty-partition/v/stable)](https://packagist.org/packages/limenet/smarty-partition) [![License](https://poser.pugx.org/limenet/smarty-partition/license)](https://packagist.org/packages/limenet/smarty-partition) [![Total Downloads](https://poser.pugx.org/limenet/smarty-partition/downloads)](https://packagist.org/packages/limenet/smarty-partition) [![StyleCI](https://styleci.io/repos/29427550/shield)](https://styleci.io/repos/29427550) [![Coverage Status](https://coveralls.io/repos/limenet/smarty-partition/badge.svg?branch=master&service=github)](https://coveralls.io/github/limenet/smarty-partition?branch=master)

A simple smarty function to partition an array including overflow.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"require": {
"smarty/smarty": "~3.1"
},
"require-dev": {
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"files": ["src/function.partition.php"]
},
Expand Down