Skip to content

Commit 41cf410

Browse files
committed
Add travis
1 parent 1aa881d commit 41cf410

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.gitignore

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/nbproject/private/
1+
coverage/
2+
vendor/
3+
composer.lock

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: php
2+
3+
php:
4+
- 5.6
5+
- 7.0
6+
- 7.1
7+
8+
env:
9+
- DEPS=lowest
10+
- DEPS=latest
11+
12+
before_script:
13+
- phpenv config-rm xdebug.ini
14+
- if [[ $DEPS == 'lowest' ]]; then composer update --prefer-stable --no-interaction --prefer-lowest ; fi
15+
- if [[ $DEPS == 'latest' ]]; then composer update --prefer-stable --no-interaction ; fi
16+
17+
script:
18+
- ./vendor/bin/phpunit

composer.json

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "php-middleware/request-simulator",
33
"require": {
4+
"php": ">=5.6",
45
"zendframework/zend-diactoros": "1.*"
56
},
67
"require-dev": {

0 commit comments

Comments
 (0)