Skip to content

Commit ab3cd1f

Browse files
authored
Merge pull request #7 from php-api-clients/infection
Add infection/infection
2 parents c6d177c + baf8938 commit ab3cd1f

File tree

8 files changed

+712
-163
lines changed

8 files changed

+712
-163
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
all:
22
composer run-script qa-all --timeout=0
33

4-
all-coverage:
5-
composer run-script qa-all-coverage --timeout=0
4+
all-extended:
5+
composer run-script qa-all-extended --timeout=0
66

77
ci:
88
composer run-script qa-ci --timeout=0
99

1010
ci-extended:
1111
composer run-script qa-ci-extended --timeout=0
1212

13+
ci-windows:
14+
composer run-script qa-ci-windows --timeout=0
15+
1316
contrib:
1417
composer run-script qa-contrib --timeout=0
1518

@@ -22,6 +25,9 @@ cs:
2225
cs-fix:
2326
composer cs-fix
2427

28+
infection:
29+
composer infection
30+
2531
unit:
2632
composer run-script unit --timeout=0
2733

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ init:
3333
## Install PHP and composer, and run the appropriate composer command
3434
install:
3535
- IF EXIST c:\tools\php (SET PHP=0)
36+
- ps: cinst make
3637
- ps: appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
3738
- cd c:\tools\php
3839
- IF %PHP%==1 copy php.ini-production php.ini /Y
@@ -52,4 +53,4 @@ install:
5253
## Run the actual test
5354
test_script:
5455
- cd c:\projects\php-project-workspace
55-
- vendor/bin/phpunit -c phpunit.xml.dist
56+
- make ci-windows

composer.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"php": "^7.0",
1313
"clue/block-react": "^1.1",
1414
"friendsofphp/php-cs-fixer": "^2.5",
15+
"infection/infection": "^0.6.2",
1516
"jakub-onderka/php-console-highlighter": "^0.3.2",
1617
"jakub-onderka/php-parallel-lint": "^0.9.2",
1718
"localheinz/composer-normalize": "^0.1.0",
@@ -63,19 +64,24 @@
6364
"@ensure-installed",
6465
"parallel-lint --exclude vendor ."
6566
],
67+
"infection": [
68+
"@ensure-installed",
69+
"infection --ansi --threads=4"
70+
],
6671
"qa-all": [
6772
"composer validate --ansi",
6873
"composer normalize --ansi",
6974
"@lint-php",
7075
"@cs",
7176
"@unit"
7277
],
73-
"qa-all-coverage": [
78+
"qa-all-extended": [
7479
"composer validate --ansi",
7580
"composer normalize --ansi",
7681
"@lint-php",
7782
"@cs",
78-
"@unit-coverage"
83+
"@unit-coverage",
84+
"@infection"
7985
],
8086
"qa-windows": [
8187
"@lint-php",
@@ -86,7 +92,7 @@
8692
"@unit"
8793
],
8894
"qa-ci-extended": [
89-
"@qa-all-coverage"
95+
"@qa-all-extended"
9096
],
9197
"qa-ci-windows": [
9298
"@qa-windows"

0 commit comments

Comments
 (0)