Skip to content

Commit d3be509

Browse files
committed
Added ExponentialBackoffErrorHandler and accompanying test.
Added MicroSleepErrorHandler and accompanying test.
0 parents  commit d3be509

File tree

13 files changed

+1399
-0
lines changed

13 files changed

+1399
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor/
2+
/.*/

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
notifications:
2+
email: false
3+
4+
sudo: false
5+
6+
language: php
7+
8+
php:
9+
- 5.5
10+
- 5.6
11+
- 7.0
12+
13+
install:
14+
- alias composer=composer\ -n && composer selfupdate
15+
- composer validate
16+
- composer --prefer-source install
17+
- composer --prefer-source require satooshi/php-coveralls
18+
19+
script:
20+
- bin/test --coverage-clover=build/logs/clover.xml
21+
22+
after_success:
23+
- vendor/bin/coveralls -v

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Retry error handlers
2+
====================
3+
4+
[![Latest version][Version image]][Releases]
5+
[![Build status][Build image]][Build]
6+
[![Test coverage][Coverage image]][Coverage]
7+
[![Code style][Style image]][Style]
8+
9+
Provides error handlers for [Retry][Retry].
10+
11+
Requirements
12+
------------
13+
14+
- [PHP 5.5](http://php.net/)
15+
- [Composer](https://getcomposer.org/)
16+
17+
18+
[Releases]: https://github.com/ScriptFUSION/Retry-error-handlers/releases
19+
[Version image]: https://poser.pugx.org/scriptfusion/retry-error-handlers/v/stable "Latest version"
20+
[Build]: http://travis-ci.org/ScriptFUSION/Retry-error-handlers
21+
[Build image]: https://travis-ci.org/ScriptFUSION/Retry-error-handlers.svg "Build status"
22+
[Coverage]: https://coveralls.io/github/ScriptFUSION/Retry-Error-Handlers
23+
[Coverage image]: https://coveralls.io/repos/ScriptFUSION/Retry-Error-Handlers/badge.svg "Test coverage"
24+
[Style]: https://styleci.io/repos/63633635
25+
[Style image]: https://styleci.io/repos/63633635/shield?style=flat "Code style"
26+
[Retry]: https://github.com/ScriptFUSION/Retry

bin/test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
cd "$(dirname "$0")"/..
4+
5+
vendor/bin/phpunit -c test "$@"

composer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "scriptfusion/retry-error-handlers",
3+
"description": "Error handlers for Retry.",
4+
"authors": [
5+
{
6+
"name": "Bilge",
7+
"email": "[email protected]"
8+
}
9+
],
10+
"require": {
11+
"scriptfusion/retry": "^1"
12+
},
13+
"require-dev": {
14+
"phpunit/phpunit": "^4"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"ScriptFUSION\\Retry\\": "src"
19+
}
20+
},
21+
"autoload-dev": {
22+
"psr-4": {
23+
"ScriptFUSIONTest\\Retry\\": "test"
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)