Skip to content

Commit 423a12a

Browse files
committed
Add infection testing
1 parent 51b890b commit 423a12a

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ composer.phar
44
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
55
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
66
# composer.lock
7+
8+
9+
# In /build/ directory store all artefacts of infection etc.
10+
/build/
11+
# Ignore local infection overrides.
12+
infection.json

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ cache:
1111
install:
1212
- composer install --no-interaction --prefer-source
1313

14+
before_script:
15+
- wget https://github.com/infection/infection/releases/download/0.8.0/infection.phar
16+
- wget https://github.com/infection/infection/releases/download/0.8.0/infection.phar.pubkey
17+
- chmod +x infection.phar
18+
1419
script:
1520
- composer validate --strict
1621
- vendor/bin/phpunit
22+
- ./infection.phar --min-msi=48 --threads=4

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,22 @@ CI with PHP and TravisCI
77

88
composer install
99
./vendor/bin/phpunit
10+
11+
12+
## Test
13+
14+
### Infection
15+
16+
* https://infection.github.io
17+
18+
Install:
19+
20+
composer global require infection/infection
21+
22+
or
23+
24+
brew install infection
25+
26+
Run:
27+
28+
infection

infection.json.dist

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"timeout": 10,
3+
"source": {
4+
"directories": [
5+
"src"
6+
]
7+
},
8+
"logs": {
9+
"text": "build/infection-log.txt"
10+
}
11+
}

0 commit comments

Comments
 (0)