Skip to content

Commit a36e97c

Browse files
committed
Moved over to dedicated org
1 parent 46f96eb commit a36e97c

File tree

10 files changed

+1512
-2616
lines changed

10 files changed

+1512
-2616
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
name: Continuous Integration
22
on:
33
push:
4+
pull_request:
45
schedule:
56
- cron: '0 0 * * 0'
67
jobs:
78
composer-install:
89
strategy:
910
matrix:
10-
php: [7.3, 7.4]
11+
php: [7.4]
1112
composer: [lowest, current, highest]
1213
runs-on: ubuntu-latest
1314
container:
1415
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
1516
steps:
1617
- uses: actions/checkout@v1
1718
- name: Cache composer packages
18-
uses: actions/cache@v1.0.1
19+
uses: actions/cache@v1
1920
with:
2021
path: ./vendor/
21-
key: ${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
22+
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
2223
- name: Install Dependencies
2324
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist
2425
if: matrix.composer == 'lowest'
@@ -28,40 +29,21 @@ jobs:
2829
- name: Install Dependencies
2930
run: composer update --ansi --no-progress --no-interaction --prefer-dist
3031
if: matrix.composer == 'highest'
31-
examples:
32-
strategy:
33-
matrix:
34-
php: [7.3, 7.4]
35-
composer: [lowest, current, highest]
36-
example: [sleep, versions]
37-
needs: composer-install
38-
runs-on: ubuntu-latest
39-
container:
40-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
41-
steps:
42-
- uses: actions/checkout@v1
43-
- name: Cache composer packages
44-
uses: actions/[email protected]
45-
with:
46-
path: ./vendor/
47-
key: ${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
48-
- name: 'Run Example: ${{ matrix.example }}'
49-
run: php ./examples/${{ matrix.example }}.php
5032
qa:
5133
strategy:
5234
matrix:
53-
php: [7.3, 7.4]
35+
php: [7.4]
5436
composer: [lowest, current, highest]
55-
command: [unit, mutation, lint, phpstan, cs]
37+
qa: [lint, cs, stan, psalm, unit, infection, composer-require-checker, composer-unused]
5638
needs: composer-install
5739
runs-on: ubuntu-latest
5840
container:
5941
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
6042
steps:
6143
- uses: actions/checkout@v1
6244
- name: Cache composer packages
63-
uses: actions/cache@v1.0.1
45+
uses: actions/cache@v1
6446
with:
6547
path: ./vendor/
66-
key: ${{ matrix.composer }}-${{ hashFiles('**/composer.lock') }}
67-
- run: make qa-${{ matrix.command }}
48+
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
49+
- run: make ${{ matrix.qa }}

Makefile

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,42 @@
1-
all:
2-
composer run-script qa-all --timeout=0
1+
# set all to phony
2+
SHELL=bash
33

4-
all-extended:
5-
composer run-script qa-all-extended --timeout=0
4+
.PHONY: *
65

7-
ci:
8-
composer run-script qa-ci --timeout=0
6+
ifneq ("$(wildcard /.dockerenv)","")
7+
DOCKER_RUN=
8+
else
9+
DOCKER_RUN=docker run --rm -it \
10+
-v `pwd`:`pwd` \
11+
-w `pwd` \
12+
"wyrihaximusnet/php:7.4-zts-alpine3.11-dev"
13+
endif
914

10-
ci-extended:
11-
composer run-script qa-ci-extended --timeout=0
15+
all: lint cs-fix cs stan psalm unit infection composer-require-checker composer-unused
1216

13-
ci-windows:
14-
composer run-script qa-ci-windows --timeout=0
15-
16-
contrib:
17-
composer run-script qa-contrib --timeout=0
17+
lint:
18+
$(DOCKER_RUN) vendor/bin/parallel-lint --exclude vendor .
1819

1920
cs:
20-
composer cs
21+
$(DOCKER_RUN) vendor/bin/phpcs --parallel=$(nproc)
2122

2223
cs-fix:
23-
composer cs-fix
24-
25-
unit:
26-
composer run-script unit --timeout=0
27-
28-
lint:
29-
composer run-script lint --timeout=0
24+
$(DOCKER_RUN) vendor/bin/phpcbf --parallel=$(nproc)
3025

3126
stan:
32-
composer run-script stan --timeout=0
27+
$(DOCKER_RUN) vendor/bin/phpstan analyse src tests --level max --ansi -c phpstan.neon
3328

3429
psalm:
35-
composer run-script psalm --timeout=0
30+
$(DOCKER_RUN) vendor/bin/psalm --threads=$(nproc) --shepherd --stats
3631

37-
composer-require-checker:
38-
composer run-script composer-require-checker --timeout=0
32+
unit:
33+
$(DOCKER_RUN) vendor/bin/phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml
3934

40-
composer-unused:
41-
composer unused
35+
infection:
36+
$(DOCKER_RUN) vendor/bin/infection --ansi --min-msi=100 --min-covered-msi=100 --threads=$(nproc)
4237

43-
unit-coverage:
44-
composer run-script unit-coverage --timeout=0
38+
composer-require-checker:
39+
$(DOCKER_RUN) vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv
4540

46-
ci-coverage:
47-
composer ci-coverage
41+
composer-unused:
42+
$(DOCKER_RUN) composer unused --ansi

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# reactphp-parallel-infinite-pool
22

3-
[![Build Status](https://travis-ci.com/WyriHaximus/reactphp-parallel-infinite-pool.png)](https://travis-ci.com/WyriHaximus/reactphp-parallel-infinite-pool)
4-
[![Latest Stable Version](https://poser.pugx.org/WyriHaximus/react-parallel-infinite-pool/v/stable.png)](https://packagist.org/packages/WyriHaximus/react-parallel-infinite-pool)
5-
[![Total Downloads](https://poser.pugx.org/WyriHaximus/react-parallel-infinite-pool/downloads.png)](https://packagist.org/packages/WyriHaximus/react-parallel-infinite-pool)
6-
[![License](https://poser.pugx.org/wyrihaximus/react-parallel-infinite-pool/license.png)](https://packagist.org/packages/wyrihaximus/react-parallel-infinite-pool)
3+
[![Build Status](https://travis-ci.com/Reactphp-parallel/infinite-pool.png)](https://travis-ci.com/Reactphp-parallel/infinite-pool)
4+
[![Latest Stable Version](https://poser.pugx.org/React-parallel/infinite-pool/v/stable.png)](https://packagist.org/packages/React-parallel/infinite-pool)
5+
[![Total Downloads](https://poser.pugx.org/React-parallel/infinite-pool/downloads.png)](https://packagist.org/packages/React-parallel/infinite-pool)
6+
[![License](https://poser.pugx.org/react-parallel/infinite-pool/license.png)](https://packagist.org/packages/react-parallel/infinite-pool)
77

88
ReactPHP bindings around ext-parallel-infinite-pool
99

@@ -12,7 +12,7 @@ ReactPHP bindings around ext-parallel-infinite-pool
1212
To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.
1313

1414
```
15-
composer require wyrihaximus/react-parallel-infinite-pool
15+
composer require react-parallel/infinite-pool
1616
```
1717

1818
## Usage ##

composer.json

Lines changed: 14 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "wyrihaximus/react-parallel-infinite-pool",
2+
"name": "react-parallel/infinite-pool",
33
"description": "♾️ Infinite pool for bridging ext-parallel and ReactPHP",
44
"license": "MIT",
55
"authors": [
@@ -10,100 +10,49 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.3",
13+
"php": "^7.4",
1414
"ext-parallel": "*",
15+
"react-parallel/contracts": "dev-master",
16+
"react-parallel/future-to-promise-converter": "dev-master",
17+
"react-parallel/runtime": "dev-master",
1518
"react/event-loop": "^1.1",
1619
"react/promise": "^2.7",
1720
"wyrihaximus/pool-info": "^1.0",
18-
"wyrihaximus/react-parallel-contracts": "^1.0",
19-
"wyrihaximus/react-parallel-future-to-promise-converter": "^1.1 || ^1.0.1",
20-
"wyrihaximus/react-parallel-runtime": "^1.0",
2121
"wyrihaximus/ticking-promise": "^1.6"
2222
},
2323
"require-dev": {
2424
"bruli/php-value-objects": "^2.0",
2525
"moneyphp/money": "^3.2 || ^3.2.1",
2626
"ocramius/package-versions": "^1.4",
27-
"wyrihaximus/async-test-utilities": "^1.2.1",
28-
"wyrihaximus/iterator-or-array-to-array": "^1.1",
29-
"wyrihaximus/react-parallel-pool-tests": "^1.0"
27+
"react-parallel/pool-tests": "dev-master",
28+
"thecodingmachine/safe": "1.0.0 as 0.1.17",
29+
"wyrihaximus/async-test-utilities": "dev-update-to-test-utilities-2.0 as 1.999.999",
30+
"wyrihaximus/iterator-or-array-to-array": "^1.1"
3031
},
3132
"config": {
3233
"platform": {
33-
"php": "7.3"
34+
"php": "7.4"
3435
},
3536
"sort-packages": true
3637
},
3738
"autoload": {
3839
"psr-4": {
39-
"WyriHaximus\\React\\Parallel\\": "src/"
40+
"ReactParallel\\Pool\\Infinite\\": "src/"
4041
}
4142
},
4243
"autoload-dev": {
4344
"psr-4": {
44-
"WyriHaximus\\React\\Tests\\Parallel\\": "tests/"
45+
"ReactParallel\\Tests\\Pool\\Infinite\\": "tests/"
4546
}
4647
},
48+
"minimum-stability": "dev",
49+
"prefer-stable": true,
4750
"scripts": {
4851
"post-install-cmd": [
4952
"composer normalize"
5053
],
5154
"post-update-cmd": [
5255
"composer normalize"
53-
],
54-
"ci-coverage": [
55-
"if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi"
56-
],
57-
"composer-require-checker": [
58-
"composer-require-checker --ignore-parse-errors --ansi -vvv --config-file=composer-require-checker.json"
59-
],
60-
"cs": [
61-
"php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating"
62-
],
63-
"cs-fix": [
64-
"php-cs-fixer fix --config=.php_cs --ansi --verbose --allow-risky=yes --show-progress=estimating"
65-
],
66-
"ensure-installed": "composer install --ansi -n -q",
67-
"lint": [
68-
"parallel-lint --exclude vendor ."
69-
],
70-
"psalm": [
71-
"psalm --threads=$(nproc)"
72-
],
73-
"qa-all": [
74-
"composer validate --ansi",
75-
"composer normalize --ansi",
76-
"composer unused --ansi",
77-
"@lint",
78-
"@cs",
79-
"@stan",
80-
"@psalm",
81-
"@composer-require-checker"
82-
],
83-
"qa-all-extended": [
84-
"composer validate --ansi",
85-
"composer normalize --ansi",
86-
"composer unused --ansi",
87-
"@lint",
88-
"@cs",
89-
"@stan",
90-
"@psalm",
91-
"@composer-require-checker"
92-
],
93-
"qa-ci": [
94-
"@unit"
95-
],
96-
"qa-ci-extended": [
97-
"@qa-all-extended"
98-
],
99-
"qa-ci-windows": [
100-
"@qa-windows"
101-
],
102-
"qa-contrib": [
103-
"@qa-all"
104-
],
105-
"stan": [
106-
"phpstan analyse src --level max --ansi -c phpstan.neon"
10756
]
10857
}
10958
}

0 commit comments

Comments
 (0)