Skip to content

Commit eec279c

Browse files
committed
Add .travis.yml
1 parent 45fb45d commit eec279c

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/.idea
33
/.php_cs.cache
44
/vendor/
5-
/.composer.lock
5+
/composer.lock

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: php
2+
php:
3+
- 7.3
4+
- 7.4
5+
- nightly
6+
7+
cache:
8+
directories:
9+
- $HOME/.composer
10+
- build/cache
11+
12+
install:
13+
- phpenv config-rm xdebug.ini || true
14+
- if [[ $TRAVIS_PHP_VERSION = nightly ]]; then export COMPOSER_FLAGS="--ignore-platform-reqs"; fi
15+
- travis_retry composer install --prefer-dist $COMPOSER_FLAGS
16+
17+
script:
18+
- composer normalize --no-check-lock --diff --dry-run
19+
- php vendor/bin/phpunit
20+

composer.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
22
"name": "infection/abstract-testframework-adapter",
3-
"description": "Abstract Test Framework Adapter for Infection",
43
"type": "library",
4+
"description": "Abstract Test Framework Adapter for Infection",
55
"license": "BSD-3-Clause",
66
"authors": [
77
{
88
"name": "Maks Rafalko",
99
"email": "[email protected]"
1010
}
1111
],
12+
"require": {
13+
"php": "^7.3 || ^8.0"
14+
},
15+
"require-dev": {
16+
"ergebnis/composer-normalize": "^2.8",
17+
"phpunit/phpunit": "^9.0"
18+
},
1219
"config": {
1320
"sort-packages": true
1421
},
15-
1622
"autoload": {
1723
"psr-4": {
1824
"Infection\\AbstractTestFramework\\": "src/"
@@ -22,12 +28,5 @@
2228
"psr-4": {
2329
"Infection\\AbstractTestFramework\\": "tests/"
2430
}
25-
},
26-
27-
"require": {
28-
"php": "^7.3 || ^8.0"
29-
},
30-
"require-dev": {
31-
"phpunit/phpunit": "^9.0"
3231
}
3332
}

0 commit comments

Comments
 (0)