mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
support file updates
This commit is contained in:
parent
d8a0c147e6
commit
4184d07610
1
.coveralls.yml
Normal file
1
.coveralls.yml
Normal file
@ -0,0 +1 @@
|
||||
src_dir: lib
|
7
.gitattributes
vendored
Normal file
7
.gitattributes
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/test export-ignore
|
||||
/.coveralls.yml export-ignore
|
||||
/.gitattributes export-ignore
|
||||
/.gitignore export-ignore
|
||||
/.php_cs export-ignore
|
||||
/.travis.yml export-ignore
|
||||
/phpunit.xml export-ignore
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,4 +1,3 @@
|
||||
.idea
|
||||
composer.lock
|
||||
vendor
|
||||
test/coverage
|
||||
vendor/
|
||||
.idea
|
||||
|
15
.php_cs
Normal file
15
.php_cs
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return Symfony\CS\Config\Config::create()
|
||||
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
|
||||
->fixers([
|
||||
"psr2",
|
||||
"-braces",
|
||||
"-psr0",
|
||||
])
|
||||
->finder(
|
||||
Symfony\CS\Finder\DefaultFinder::create()
|
||||
->in(__DIR__ . "/lib")
|
||||
->in(__DIR__ . "/test")
|
||||
)
|
||||
;
|
22
.travis.yml
22
.travis.yml
@ -1,9 +1,23 @@
|
||||
language: php
|
||||
sudo: false
|
||||
|
||||
php:
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: 7
|
||||
|
||||
before_script:
|
||||
- composer install
|
||||
script: php vendor/bin/phpunit --coverage-text
|
||||
- yes "" | pecl install "channel://pecl.php.net/libevent-0.1.0"
|
||||
- echo "extension=\"libevent.so\"" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
||||
- composer self-update
|
||||
- composer install --dev
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
|
||||
- php vendor/bin/php-cs-fixer --diff --dry-run -v fix
|
||||
|
||||
after_script:
|
||||
- php vendor/bin/coveralls -v
|
25
README.md
25
README.md
@ -1,25 +1,20 @@
|
||||
# Amp [![Build Status](https://travis-ci.org/amphp/amp.svg?branch=v1.0.x)](https://travis-ci.org/amphp/amp)
|
||||
# amp
|
||||
|
||||
`amphp/amp` is a non-blocking concurrency framework for PHP applications. Learn more about Amp in the
|
||||
[![Build Status](https://travis-ci.org/amphp/amp.svg?branch=v1.0.x)](https://travis-ci.org/amphp/amp)
|
||||
[![Coverage Status](https://coveralls.io/repos/amphp/fs/badge.svg?branch=v1.0.x&service=github)](https://coveralls.io/github/amphp/fs?branch=v1.0.x)
|
||||
![Unstable](https://img.shields.io/badge/pre_alpha-unstable-orange.svg)
|
||||
|
||||
`amphp/amp` is a non-blocking concurrency framework for PHP applications. Learn more about amp in the
|
||||
[Guide](https://stackedit.io/viewer#!url=https://raw.githubusercontent.com/amphp/amp/master/guide.md).
|
||||
|
||||
**Dependencies**
|
||||
|
||||
- PHP 5.5+
|
||||
|
||||
Optional PHP extensions may be used to improve performance in production environments and react to process control signals:
|
||||
|
||||
- [php-uv](https://github.com/chobie/php-uv) extension for libuv backends
|
||||
|
||||
**Maintained Versions**
|
||||
|
||||
- v1.0.0 (PHP 5.5+)
|
||||
- v1.1.0 (PHP 7+)
|
||||
|
||||
Although there are no API breaks moving from v1.0 to v1.1 the newer release *does* require PHP 7. Amp follows the [semver](http://semver.org/) semantic versioning specification. As a result, users may require any version >= 1.0.0 using the caret operator as shown below without backwards-compatibility issues. Composer will automatically retrieve the latest stable version available for your PHP environment.
|
||||
- [libevent](https://pecl.php.net/package/libevent) (optional)
|
||||
- [php-uv](https://github.com/bwoebi/php-uv) (optional & experimental, requires PHP7)
|
||||
|
||||
**Installation**
|
||||
|
||||
```bash
|
||||
$ composer require amphp/amp:^1
|
||||
```
|
||||
$ composer require amphp/amp
|
||||
```
|
||||
|
@ -22,7 +22,9 @@
|
||||
"php": ">=5.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~4.4.0"
|
||||
"phpunit/phpunit": "~4.4.0",
|
||||
"fabpot/php-cs-fixer": "~1.9",
|
||||
"satooshi/php-coveralls": "dev-master"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
21
phpunit.xml
21
phpunit.xml
@ -9,25 +9,4 @@
|
||||
<directory>./lib</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
|
||||
<logging>
|
||||
<!--
|
||||
<log
|
||||
type="coverage-html"
|
||||
target="./test/coverage"
|
||||
charset="UTF-8"
|
||||
yui="true"
|
||||
lowUpperBound="35"
|
||||
highLowerBound="70"
|
||||
showUncoveredFiles="true"
|
||||
/>
|
||||
-->
|
||||
<log
|
||||
type="coverage-text"
|
||||
target="php://stdout"
|
||||
lowUpperBound="35"
|
||||
highLowerBound="70"
|
||||
/>
|
||||
|
||||
</logging>
|
||||
</phpunit>
|
||||
|
Loading…
Reference in New Issue
Block a user