diff --git a/.travis.yml b/.travis.yml index ec9783c..10a7c09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ install: - export COLUMNS=120 - composer show script: -- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi +- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage && composer test-infection ; else composer test ; fi - if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi - if [[ $PHPSTAN == 'true' ]]; then composer phpstan ; fi after_script: diff --git a/composer.json b/composer.json index f04fe12..108b3d1 100644 --- a/composer.json +++ b/composer.json @@ -48,6 +48,7 @@ "cs-fix": "vendor/bin/phpcbf", "test": "vendor/bin/phpunit --colors=always", "phpstan": "vendor/bin/phpstan analyse", + "test-infection": "vendor/bin/infection --threads=4", "test-coverage": "vendor/bin/phpunit --colors=always --coverage-clover clover.xml", "upload-coverage": "vendor/bin/php-coveralls -v" } diff --git a/infection.json.dist b/infection.json.dist index 5668e43..b507891 100644 --- a/infection.json.dist +++ b/infection.json.dist @@ -7,8 +7,8 @@ }, "logs": { "text": "infection-log.txt", - "badge": { - "branch": "master" - } + "badge": { + "branch": "master" + } } } \ No newline at end of file