Skip to content

Commit 629a1af

Browse files
committed
Moved package to it's own org
1 parent 027007c commit 629a1af

File tree

12 files changed

+1303
-2281
lines changed

12 files changed

+1303
-2281
lines changed

.circleci/config.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: '0 0 * * 0'
7+
jobs:
8+
composer-install:
9+
strategy:
10+
matrix:
11+
php: [7.4]
12+
composer: [lowest, current, highest]
13+
runs-on: ubuntu-latest
14+
container:
15+
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.11-dev-root
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Cache composer packages
19+
uses: actions/cache@v1
20+
with:
21+
path: ./vendor/
22+
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
23+
- name: Install Dependencies
24+
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist
25+
if: matrix.composer == 'lowest'
26+
- name: Install Dependencies
27+
run: composer install --ansi --no-progress --no-interaction --prefer-dist
28+
if: matrix.composer == 'current'
29+
- name: Install Dependencies
30+
run: composer update --ansi --no-progress --no-interaction --prefer-dist
31+
if: matrix.composer == 'highest'
32+
qa:
33+
strategy:
34+
matrix:
35+
php: [7.4]
36+
composer: [lowest, current, highest]
37+
qa: [lint, cs, stan, psalm, composer-require-checker, composer-unused]
38+
needs: composer-install
39+
runs-on: ubuntu-latest
40+
container:
41+
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.11-dev-root
42+
steps:
43+
- uses: actions/checkout@v1
44+
- name: Cache composer packages
45+
uses: actions/cache@v1
46+
with:
47+
path: ./vendor/
48+
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
49+
- run: make ${{ matrix.qa }}

.travis.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

Makefile

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +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
18-
19-
init:
20-
composer ensure-installed
17+
lint:
18+
$(DOCKER_RUN) vendor/bin/parallel-lint --exclude vendor .
2119

2220
cs:
23-
composer cs
21+
$(DOCKER_RUN) vendor/bin/phpcs --parallel=$(nproc)
2422

2523
cs-fix:
26-
composer cs-fix
24+
$(DOCKER_RUN) vendor/bin/phpcbf --parallel=$(nproc)
2725

28-
infection:
29-
composer infection
26+
stan:
27+
$(DOCKER_RUN) vendor/bin/phpstan analyse src tests --level max --ansi -c phpstan.neon
28+
29+
psalm:
30+
$(DOCKER_RUN) vendor/bin/psalm --threads=$(nproc) --shepherd --stats
3031

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

34-
stan:
35-
composer run-script stan --timeout=0
35+
infection:
36+
$(DOCKER_RUN) vendor/bin/infection --ansi --min-msi=100 --min-covered-msi=100 --threads=$(nproc)
3637

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

40-
ci-coverage: init
41-
composer ci-coverage
41+
composer-unused:
42+
$(DOCKER_RUN) composer unused --ansi

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# ReactPHP Runtime wrapper for ext-parallel
22

3-
[![Linux Build Status](https://travis-ci.com/WyriHaximus/reactphp-parallel-runtime.png)](https://travis-ci.com/WyriHaximus/reactphp-parallel-runtime)
4-
[![Latest Stable Version](https://poser.pugx.org/WyriHaximus/react-parallel-runtime/v/stable.png)](https://packagist.org/packages/WyriHaximus/react-parallel-runtime)
5-
[![Total Downloads](https://poser.pugx.org/WyriHaximus/react-parallel-runtime/downloads.png)](https://packagist.org/packages/WyriHaximus/react-parallel-runtime)
6-
[![Code Coverage](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-parallel-runtime/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-parallel-runtime/?branch=master)
7-
[![License](https://poser.pugx.org/WyriHaximus/react-parallel-runtime/license.png)](https://packagist.org/packages/wyrihaximus/react-parallel-runtime)
8-
[![PHP 7 ready](http://php7ready.timesplinter.ch/WyriHaximus/reactphp-parallel-runtime/badge.svg)](https://travis-ci.org/WyriHaximus/reactphp-parallel-runtime)
3+
[![Linux Build Status](https://travis-ci.com/Reactphp-parallel/runtime.png)](https://travis-ci.com/Reactphp-parallel/runtime)
4+
[![Latest Stable Version](https://poser.pugx.org/React-parallel/runtime/v/stable.png)](https://packagist.org/packages/React-parallel/runtime)
5+
[![Total Downloads](https://poser.pugx.org/React-parallel/runtime/downloads.png)](https://packagist.org/packages/React-parallel/runtime)
6+
[![Code Coverage](https://scrutinizer-ci.com/g/Reactphp-parallel/runtime/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Reactphp-parallel/runtime/?branch=master)
7+
[![License](https://poser.pugx.org/React-parallel/runtime/license.png)](https://packagist.org/packages/react-parallel/runtime)
8+
[![PHP 7 ready](http://php7ready.timesplinter.ch/Reactphp-parallel/runtime/badge.svg)](https://travis-ci.org/Reactphp-parallel/runtime)
99

1010
### Installation ###
1111

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-runtime
15+
composer require react-parallel/runtime
1616
```
1717

1818
# Usage

composer.json

Lines changed: 11 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "wyrihaximus/react-parallel-runtime",
2+
"name": "react-parallel/runtime",
33
"description": "Convinence wrapper around ext-parallel Runtime for and ReactPHP",
44
"license": "MIT",
55
"authors": [
@@ -10,98 +10,41 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.3",
13+
"php": "^7.4",
1414
"ext-parallel": "*",
15+
"react-parallel/future-to-promise-converter": "dev-master",
1516
"react/event-loop": "^1.1",
16-
"wyrihaximus/react-parallel-future-to-promise-converter": "^1.0 || ^1.0.1"
17+
"react/promise": "^2.7"
1718
},
1819
"require-dev": {
19-
"thecodingmachine/safe": "^0.1.16",
20-
"wyrihaximus/async-test-utilities": "^1.1",
20+
"thecodingmachine/safe": "1.0.0 as 0.1.17",
21+
"wyrihaximus/async-test-utilities": "dev-update-to-test-utilities-2.0 as 1.999.999",
2122
"wyrihaximus/ticking-promise": "^1.6"
2223
},
2324
"config": {
2425
"platform": {
25-
"php": "7.3"
26+
"php": "7.4"
2627
},
2728
"sort-packages": true
2829
},
2930
"autoload": {
3031
"psr-4": {
31-
"WyriHaximus\\React\\Parallel\\": "src/"
32+
"ReactParallel\\Runtime\\": "src/"
3233
}
3334
},
3435
"autoload-dev": {
3536
"psr-4": {
36-
"WyriHaximus\\React\\Tests\\Parallel\\": "tests/"
37+
"ReactParallel\\Tests\\Runtime\\": "tests/"
3738
}
3839
},
40+
"minimum-stability": "dev",
41+
"prefer-stable": true,
3942
"scripts": {
4043
"post-install-cmd": [
4144
"composer normalize"
4245
],
4346
"post-update-cmd": [
4447
"composer normalize"
45-
],
46-
"ci-coverage": [
47-
"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"
48-
],
49-
"cs": [
50-
"php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating"
51-
],
52-
"cs-fix": [
53-
"php-cs-fixer fix --config=.php_cs --ansi --verbose --allow-risky=yes --show-progress=estimating"
54-
],
55-
"infection": [
56-
"infection --ansi --threads=4"
57-
],
58-
"lint-php": [
59-
"parallel-lint --exclude vendor ."
60-
],
61-
"qa-all": [
62-
"composer validate --ansi",
63-
"composer normalize --ansi",
64-
"@lint-php",
65-
"@cs",
66-
"@stan",
67-
"@unit",
68-
"@infection"
69-
],
70-
"qa-all-extended": [
71-
"composer validate --ansi",
72-
"composer normalize --ansi",
73-
"@lint-php",
74-
"@cs",
75-
"@stan",
76-
"@unit-coverage",
77-
"@infection"
78-
],
79-
"qa-ci": [
80-
"@unit"
81-
],
82-
"qa-ci-extended": [
83-
"@qa-all-extended"
84-
],
85-
"qa-ci-windows": [
86-
"@qa-windows"
87-
],
88-
"qa-contrib": [
89-
"@qa-all"
90-
],
91-
"qa-windows": [
92-
"@lint-php",
93-
"@cs",
94-
"@stan",
95-
"@unit"
96-
],
97-
"stan": [
98-
"phpstan analyse src tests --level max --ansi -c phpstan.neon"
99-
],
100-
"unit": [
101-
"phpunit --colors=always -c phpunit.xml.dist"
102-
],
103-
"unit-coverage": [
104-
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml"
10548
]
10649
}
10750
}

0 commit comments

Comments
 (0)