Skip to content

Commit

Permalink
Moved infection config to test directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Nov 26, 2019
1 parent 2ae2ffb commit 7e7bd94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ script:
- composer test -- --coverage-clover=build/logs/clover.xml --coverage-xml=build/coverage/coverage-xml
--log-junit=build/coverage/phpunit.junit.xml
- travis_retry bash <(curl -s https://codecov.io/bash) || true
- vendor/bin/infection --min-msi=95 --threads=$(nproc) --coverage=build/coverage
- composer mutation -- --min-msi=100 --threads=$(nproc) --show-mutations --coverage=build/coverage
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
}
},
"scripts": {
"test": "phpunit -c test"
"test": "phpunit -c test",
"mutation": "infection --configuration=test/infection.json"
},
"config": {
"sort-packages": true
Expand Down
2 changes: 1 addition & 1 deletion infection.json → test/infection.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
]
},
"phpUnit": {
"configDir": "test"
"configDir": "."
},
"logs": {
"text": "infection.log",
Expand Down

0 comments on commit 7e7bd94

Please sign in to comment.