Skip to content

Add infection/infection #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
all:
composer run-script qa-all --timeout=0

all-coverage:
composer run-script qa-all-coverage --timeout=0
all-extended:
composer run-script qa-all-extended --timeout=0

ci:
composer run-script qa-ci --timeout=0

ci-extended:
composer run-script qa-ci-extended --timeout=0

ci-windows:
composer run-script qa-ci-windows --timeout=0

contrib:
composer run-script qa-contrib --timeout=0

Expand All @@ -22,6 +25,9 @@ cs:
cs-fix:
composer cs-fix

infection:
composer infection

unit:
composer run-script unit --timeout=0

Expand Down
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ init:
## Install PHP and composer, and run the appropriate composer command
install:
- IF EXIST c:\tools\php (SET PHP=0)
- ps: cinst make
- 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|]','')
- cd c:\tools\php
- IF %PHP%==1 copy php.ini-production php.ini /Y
Expand All @@ -52,4 +53,4 @@ install:
## Run the actual test
test_script:
- cd c:\projects\php-project-workspace
- vendor/bin/phpunit -c phpunit.xml.dist
- make ci-windows
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"php": "^7.0",
"clue/block-react": "^1.1",
"friendsofphp/php-cs-fixer": "^2.5",
"infection/infection": "^0.6.2",
"jakub-onderka/php-console-highlighter": "^0.3.2",
"jakub-onderka/php-parallel-lint": "^0.9.2",
"localheinz/composer-normalize": "^0.1.0",
Expand Down Expand Up @@ -63,19 +64,24 @@
"@ensure-installed",
"parallel-lint --exclude vendor ."
],
"infection": [
"@ensure-installed",
"infection --ansi --threads=4"
],
"qa-all": [
"composer validate --ansi",
"composer normalize --ansi",
"@lint-php",
"@cs",
"@unit"
],
"qa-all-coverage": [
"qa-all-extended": [
"composer validate --ansi",
"composer normalize --ansi",
"@lint-php",
"@cs",
"@unit-coverage"
"@unit-coverage",
"@infection"
],
"qa-windows": [
"@lint-php",
Expand All @@ -86,7 +92,7 @@
"@unit"
],
"qa-ci-extended": [
"@qa-all-coverage"
"@qa-all-extended"
],
"qa-ci-windows": [
"@qa-windows"
Expand Down
Loading