Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Add Infection #22

Merged
merged 5 commits into from
Jan 24, 2021
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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ jobs:
if: matrix.coveralls == true
run: ./vendor/bin/phing unit-with-coverage

- name: Infection for added files
run: |
git fetch --depth=1 origin $GITHUB_BASE_REF
./vendor/bin/infection -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered

- name: Coveralls report
if: matrix.coveralls == true
env:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.phpunit.result.cache
.idea/
infection.log
vendor/

7 changes: 7 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
</exec>
</target>

<target name="infection">
<exec executable="./vendor/bin/infection"
passthru="true"
checkreturn="true">
</exec>
</target>

<target name="analyse">
<exec executable="./vendor/bin/phpstan"
passthru="true"
Expand Down
4 changes: 4 additions & 0 deletions captainhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
{
"action": "./vendor/bin/phing analyse",
"options": []
},
{
"action": "./vendor/bin/phing infection",
"options": []
}
]
},
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"captainhook/plugin-composer": "^5.2",
"bitexpert/phpstan-magento": "^0.6.0",
"phpstan/extension-installer": "^1.1",
"roave/security-advisories": "dev-latest"
"roave/security-advisories": "dev-latest",
"infection/infection": "^0.20.2"
},
"repositories": [
{
Expand Down
Loading