Skip to content

Commit

Permalink
travis infection
Browse files Browse the repository at this point in the history
  • Loading branch information
alextartan committed May 4, 2019
1 parent 85c4a9c commit ce65587
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
},
"logs": {
"text": "infection-log.txt",
"badge": {
"branch": "master"
}
"badge": {
"branch": "master"
}
}
}

0 comments on commit ce65587

Please sign in to comment.