Skip to content

Commit

Permalink
Added ExponentialBackoffErrorHandler and accompanying test.
Browse files Browse the repository at this point in the history
Added MicroSleepErrorHandler and accompanying test.
  • Loading branch information
Bilge committed Jul 18, 2016
0 parents commit 41f6927
Show file tree
Hide file tree
Showing 13 changed files with 1,399 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
/vendor/
/.*/
23 changes: 23 additions & 0 deletions .travis.yml
@@ -0,0 +1,23 @@
notifications:
email: false

sudo: false

language: php

php:
- 5.5
- 5.6
- 7.0

install:
- alias composer=composer\ -n && composer selfupdate
- composer validate
- composer --prefer-source install
- composer --prefer-source require satooshi/php-coveralls

script:
- bin/test --coverage-clover=build/logs/clover.xml

after_success:
- vendor/bin/coveralls -v
26 changes: 26 additions & 0 deletions README.md
@@ -0,0 +1,26 @@
Retry
=====

[![Latest version][Version image]][Releases]
[![Build status][Build image]][Build]
[![Test coverage][Coverage image]][Coverage]
[![Code style][Style image]][Style]

Provides error handlers for [Retry][Retry].

Requirements
------------

- [PHP 5.5](http://php.net/)
- [Composer](https://getcomposer.org/)


[Releases]: https://github.com/ScriptFUSION/Retry-Error-Handlers/releases
[Version image]: https://poser.pugx.org/scriptfusion/retry-error-handlers/v/stable "Latest version"
[Build]: http://travis-ci.org/ScriptFUSION/Retry-Error-Handlers
[Build image]: https://travis-ci.org/ScriptFUSION/Retry-Error-Handlers.svg "Build status"
[Coverage]: https://coveralls.io/github/ScriptFUSION/Retry-Error-Handlers
[Coverage image]: https://coveralls.io/repos/ScriptFUSION/Retry-Error-Handlers/badge.svg "Test coverage"
[Style]: https://styleci.io/repos/63633635
[Style image]: https://styleci.io/repos/63633635/shield?style=flat "Code style"
[Retry]: https://github.com/ScriptFUSION/Retry
5 changes: 5 additions & 0 deletions bin/test
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

cd "$(dirname "$0")"/..

vendor/bin/phpunit -c test "$@"
26 changes: 26 additions & 0 deletions composer.json
@@ -0,0 +1,26 @@
{
"name": "scriptfusion/retry-error-handlers",
"description": "Error handlers for Retry.",
"authors": [
{
"name": "Bilge",
"email": "bilge@scriptfusion.com"
}
],
"require": {
"scriptfusion/retry": "^1"
},
"require-dev": {
"phpunit/phpunit": "^4"
},
"autoload": {
"psr-4": {
"ScriptFUSION\\Retry\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"ScriptFUSIONTest\\Retry\\": "test"
}
}
}

0 comments on commit 41f6927

Please sign in to comment.