Skip to content

Commit d3e1c3c

Browse files
committed
Add travis
1 parent 08e8ab7 commit d3e1c3c

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: php
2+
3+
php:
4+
- '7.1'
5+
- '7.2'
6+
- '7.3'
7+
8+
before_script:
9+
- composer install
10+
11+
script: phpunit

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Laravel RespondTo
22

3+
![Travis](https://api.travis-ci.org/paulhenri-l/laravel-respond-to.svg?branch=master)
4+
35
This library will provide you with rails like `respond_to` functionality. This
46
feature allows a controller action to return different responses according to
57
the request `Accept` header (the format).
@@ -34,8 +36,8 @@ class MyController
3436
}
3537
```
3638

37-
This controller is now able to respond to `html`, `json` and `txt` requests with
38-
different responses.
39+
This controller is now able to respond to different formats with different
40+
responses.
3941

4042
*Each call to the `to` function must be followed by a `with` or `withView`
4143
call.*

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
}
1111
],
1212
"require": {
13+
"php": "^7.1",
1314
"laravel/framework": "^5.8"
1415
},
1516
"require-dev": {

0 commit comments

Comments
 (0)