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

Commit

Permalink
Merge pull request #22 from bitExpert/feature/infection
Browse files Browse the repository at this point in the history
Add Infection
  • Loading branch information
shochdoerfer authored Jan 24, 2021
2 parents 8c86caf + bcf3b34 commit ddc1897
Show file tree
Hide file tree
Showing 9 changed files with 816 additions and 50 deletions.
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

0 comments on commit ddc1897

Please sign in to comment.