Skip to content

Commit 5e94a18

Browse files
authored
Merge pull request #58 from matthewnessworthy/patch-1
Laravel 7 Support
2 parents 6a5689c + b0b920b commit 5e94a18

File tree

3 files changed

+38
-11
lines changed

3 files changed

+38
-11
lines changed

.travis.yml

+33-6
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,42 @@ php:
44
- 7.1
55
- 7.2
66
- 7.3
7+
- 7.4
78

89
env:
9-
matrix:
10-
- COMPOSER_FLAGS="--prefer-lowest"
11-
- COMPOSER_FLAGS=""
10+
- LARAVEL="^5.5" COMPOSER_FLAGS="--prefer-lowest"
11+
- LARAVEL="^5.5" COMPOSER_FLAGS=""
12+
- LARAVEL="^6.0" COMPOSER_FLAGS="--prefer-lowest"
13+
- LARAVEL="^6.0" COMPOSER_FLAGS=""
14+
- LARAVEL="^7.0" COMPOSER_FLAGS="--prefer-lowest"
15+
- LARAVEL="^7.0" COMPOSER_FLAGS=""
1216

13-
before_script:
14-
- travis_retry composer self-update
15-
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
17+
matrix:
18+
exclude:
19+
- php: 7.1
20+
env: LARAVEL="^6.0" COMPOSER_FLAGS="--prefer-lowest"
21+
- php: 7.1
22+
env: LARAVEL="^6.0" COMPOSER_FLAGS=""
23+
- php: 7.1
24+
env: LARAVEL="^7.0" COMPOSER_FLAGS="--prefer-lowest"
25+
- php: 7.1
26+
env: LARAVEL="^7.0" COMPOSER_FLAGS=""
27+
allow_failures:
28+
- php: 7.4
29+
env: LARAVEL="^5.5" COMPOSER_FLAGS="--prefer-lowest"
30+
- php: 7.4
31+
env: LARAVEL="^6.0" COMPOSER_FLAGS="--prefer-lowest"
32+
33+
cache:
34+
directories:
35+
- $HOME/.composer/cache/files
36+
37+
before_install:
38+
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
39+
40+
install:
41+
- travis_retry composer require laravel/framework:${LARAVEL} --no-interaction --prefer-dist
42+
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
1643

1744
script:
1845
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
],
1818
"require": {
1919
"php": "^7.1",
20-
"illuminate/support": "^5.5|^6"
20+
"illuminate/support": "^5.5 || ^6.0 || ^7.0"
2121
},
2222
"require-dev": {
23-
"orchestra/testbench": "3.6.*",
24-
"phpunit/phpunit": "^7.0"
23+
"orchestra/testbench": "^3.0 || ^4.0 || ^5.0",
24+
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

tests/TestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
1212
{
1313
protected static $setUpRun = false;
1414

15-
public function setUp()
15+
public function setUp(): void
1616
{
1717
parent::setUp();
1818

@@ -79,4 +79,4 @@ protected function setUpDatabase()
7979
$table->morphs('commentable');
8080
});
8181
}
82-
}
82+
}

0 commit comments

Comments
 (0)