Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Commit

Permalink
Merge pull request #13 from Roave/enhancement/add-infection
Browse files Browse the repository at this point in the history
Enable mutation tests 🎉
  • Loading branch information
Ocramius authored Feb 9, 2018
2 parents b591327 + de77a87 commit 5211f3b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
phpunit.xml
infection-log.txt
.idea
composer.lock
vendor
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php

php:
- 7.0
- 7.1
- 7.2

Expand All @@ -15,6 +14,7 @@ before_script:

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml --colors
- if [[ $TRAVIS_PHP_VERSION == '7.2' ]]; then ./vendor/bin/infection; fi

after_script:
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"description": "Sign and verify stuff",
"license": "MIT",
"require": {
"php": "^7.0 || ^7.1 || ^7.2"
"php": "^7.1 || ^7.2"
},
"require-dev": {
"phpunit/phpunit": "^6.5"
"phpunit/phpunit": "^7.0",
"infection/infection": "^0.7.1"
},
"autoload": {
"psr-4": {
Expand Down
11 changes: 11 additions & 0 deletions infection.json.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"timeout": 10,
"source": {
"directories": [
"src"
]
},
"logs": {
"text": "infection-log.txt"
}
}

0 comments on commit 5211f3b

Please # to comment.