Skip to content

Commit f06d18e

Browse files
authored
Add Laravel 5.7 support (#9)
1 parent 5ff1c4e commit f06d18e

File tree

4 files changed

+39
-20
lines changed

4 files changed

+39
-20
lines changed

.travis.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,38 @@ branches:
99
php:
1010
- 7.0
1111
- 7.1
12+
- 7.2
1213

1314
env:
14-
matrix:
15-
- COMPOSER_FLAGS="--prefer-lowest"
16-
- COMPOSER_FLAGS=""
15+
- LARAVEL_VERSION=5.5.*
16+
- LARAVEL_VERSION=5.6.*
17+
- LARAVEL_VERSION=5.7.*
18+
matrix:
19+
exclude:
20+
- php: 7.0
21+
env: LARAVEL_VERSION=5.6.*
22+
- php: 7.0
23+
env: LARAVEL_VERSION=5.7.*
1724

18-
before_script:
25+
sudo: false
26+
27+
before_install:
28+
- composer require "illuminate/auth:${LARAVEL_VERSION}" --no-update
29+
- composer require "illuminate/console:${LARAVEL_VERSION}" --no-update
30+
- composer require "illuminate/contracts:${LARAVEL_VERSION}" --no-update
31+
- composer require "illuminate/database:${LARAVEL_VERSION}" --no-update
32+
- composer require "illuminate/events:${LARAVEL_VERSION}" --no-update
33+
- composer require "illuminate/support:${LARAVEL_VERSION}" --no-update
34+
- composer require "illuminate/view:${LARAVEL_VERSION}" --no-update
35+
36+
37+
install:
1938
- travis_retry composer self-update
20-
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction
39+
- travis_retry composer update --no-interaction --prefer-dist
2140

2241
script:
23-
- vendor/bin/phpunit
42+
- vendor/bin/phpunit
43+
44+
notifications:
45+
email:
46+
on_success: never

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
"type": "project",
77
"require": {
88
"php": ">=7.0",
9-
"illuminate/auth": "~5.5.0|~5.6.0",
10-
"illuminate/console": "~5.5.0|~5.6.0",
11-
"illuminate/contracts": "~5.5.0|~5.6.0",
12-
"illuminate/database": "~5.5.0|~5.6.0",
13-
"illuminate/events": "~5.5.0|~5.6.0",
14-
"illuminate/support": "~5.5.0|~5.6.0",
15-
"illuminate/view": "~5.5.0|~5.6.0"
9+
"illuminate/auth": "5.5.*|5.6.*|5.7.*",
10+
"illuminate/console": "5.5.*|5.6.*|5.7.*",
11+
"illuminate/contracts": "5.5.*|5.6.*|5.7.*",
12+
"illuminate/database": "5.5.*|5.6.*|5.7.*",
13+
"illuminate/events": "5.5.*|5.6.*|5.7.*",
14+
"illuminate/support": "5.5.*|5.6.*|5.7.*",
15+
"illuminate/view": "5.5.*|5.6.*|5.7.*"
1616
},
1717
"require-dev": {
1818
"fzaninotto/faker": "~1.4",
1919
"mockery/mockery": "^1.0",
2020
"phpunit/phpunit": "^6.2|^7.0",
21-
"orchestra/testbench": "~3.5|~3.6"
21+
"orchestra/testbench": "~3.5|~3.6|~3.7"
2222
},
2323
"autoload": {
2424
"classmap": [

phpunit.xml.dist

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
<env name="DB_DATABASE" value=":memory:"/>-->
2323
</php>
2424
<filter>
25-
<blacklist>
26-
<directory>vendor</directory>
27-
<directory>test</directory>
28-
<directory>config</directory>
29-
<directory>routes</directory>
30-
</blacklist>
3125
<whitelist>
3226
<directory>src</directory>
3327
</whitelist>

tests/Unit/TusHookProcessingCommandTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
class TusHookProcessingCommandTest extends AbstractTestCase
1111
{
12+
public $mockConsoleOutput = false;
13+
1214
use DatabaseMigrations;
1315

1416
const UPLOAD_TOKEN = 'AAAAAAAAA';

0 commit comments

Comments
 (0)