Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit d21d6f6

Browse files
committed
Bump to PHP 7.4+
1 parent 2105120 commit d21d6f6

File tree

10 files changed

+778
-1897
lines changed

10 files changed

+778
-1897
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
matrix:
3535
php: [7.4]
3636
composer: [lowest, current, highest]
37-
qa: [lint, cs, stan, psalm, composer-require-checker, composer-unused]
37+
qa: [lint, cs, stan, psalm, unit, infection, composer-require-checker, composer-unused]
3838
needs: composer-install
3939
runs-on: ubuntu-latest
4040
container:

.travis.yml

Lines changed: 0 additions & 48 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

composer.json

Lines changed: 12 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,27 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.3",
13+
"php": "^7.4",
1414
"ext-parallel": "*",
1515
"react/event-loop": "^1.1",
1616
"react/promise": "^2.7"
1717
},
1818
"require-dev": {
19-
"thecodingmachine/safe": "^0.1.16",
20-
"wyrihaximus/async-test-utilities": "^1.1"
19+
"thecodingmachine/safe": "1.0.0 as 0.1.17",
20+
"wyrihaximus/async-test-utilities": "dev-update-to-test-utilities-2.0 as 1.999.999"
2121
},
2222
"config": {
2323
"platform": {
24-
"php": "7.3"
24+
"php": "7.4"
2525
},
2626
"sort-packages": true
2727
},
28+
"extra": {
29+
"unused": [
30+
"php",
31+
"ext-parallel"
32+
]
33+
},
2834
"autoload": {
2935
"psr-4": {
3036
"ReactParallel\\FutureToPromiseConverter\\": "src/"
@@ -35,76 +41,14 @@
3541
"ReactParallel\\Tests\\FutureToPromiseConverter\\": "tests/"
3642
}
3743
},
44+
"minimum-stability": "dev",
45+
"prefer-stable": true,
3846
"scripts": {
3947
"post-install-cmd": [
4048
"composer normalize"
4149
],
4250
"post-update-cmd": [
4351
"composer normalize"
44-
],
45-
"ci-coverage": [
46-
"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"
47-
],
48-
"cs": [
49-
"php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating"
50-
],
51-
"cs-fix": [
52-
"php-cs-fixer fix --config=.php_cs --ansi --verbose --allow-risky=yes --show-progress=estimating"
53-
],
54-
"infection": [
55-
"infection --ansi --threads=4"
56-
],
57-
"lint-php": [
58-
"parallel-lint --exclude vendor ."
59-
],
60-
"qa-all": [
61-
"composer validate --ansi",
62-
"composer normalize --ansi",
63-
"@lint-php",
64-
"@cs",
65-
"@stan",
66-
"@unit",
67-
"@infection"
68-
],
69-
"qa-all-extended": [
70-
"composer validate --ansi",
71-
"composer normalize --ansi",
72-
"@lint-php",
73-
"@cs",
74-
"@stan",
75-
"@unit-coverage",
76-
"@infection"
77-
],
78-
"qa-ci": [
79-
"@unit"
80-
],
81-
"qa-ci-extended": [
82-
"composer validate --ansi",
83-
"@lint-php",
84-
"@cs",
85-
"@stan",
86-
"@unit-coverage"
87-
],
88-
"qa-ci-windows": [
89-
"@qa-windows"
90-
],
91-
"qa-contrib": [
92-
"@qa-all"
93-
],
94-
"qa-windows": [
95-
"@lint-php",
96-
"@cs",
97-
"@stan",
98-
"@unit"
99-
],
100-
"stan": [
101-
"phpstan analyse src tests --level max --ansi -c phpstan.neon"
102-
],
103-
"unit": [
104-
"phpunit --colors=always -c phpunit.xml.dist"
105-
],
106-
"unit-coverage": [
107-
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml"
10852
]
10953
}
11054
}

0 commit comments

Comments
 (0)