Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ build/
.project
composer.lock
coverage.xml
infection.json
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ before_script:
- travis_retry composer update --no-interaction

script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
- composer test

after_success:
- bash <(curl -s https://codecov.io/bash)
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=5.4 || >=7.1 || >=7.2",
"doctrine/dbal": "~2.4",
"doctrine/orm": "~2.4"
},
"require-dev": {
"infection/infection": "^0.13.1",
"phpunit/phpunit": "^6.5"
},
"autoload": {
Expand All @@ -27,6 +28,10 @@
"OpsWay\\Tests\\": "tests/"
}
},
"scripts": {
"test": "infection --threads=$(nproc) --min-msi=88 --min-covered-msi=93 --test-framework-options='--coverage-clover=build/coverage.xml'",
"cover": "phpunit --coverage-clover=build/coverage.xml"
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
Expand Down
15 changes: 15 additions & 0 deletions infection.json.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"source": {
"directories": [
"src"
]
},
"timeout": 10,
"logs": {
"text": "build/infection/mutants.log",
"summary": "build/infection/summary.log",
"perMutator": "build/infection/per-mutator.md"
},
"tmpDir": "build/infection",
"testFramework": "phpunit"
}