mirror of
https://github.com/Intervention/image.git
synced 2025-08-01 03:20:17 +02:00
Merge pull request #1055 from freshleafmedia/travis/php7.4
Adds PHP 7.4 to the Travis build
This commit is contained in:
42
.travis.yml
42
.travis.yml
@@ -2,23 +2,31 @@ language: php
|
|||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
dist: trusty
|
jobs:
|
||||||
|
include:
|
||||||
php:
|
- dist: trusty
|
||||||
- 5.4
|
php: 5.4
|
||||||
- 5.5
|
- dist: trusty
|
||||||
- 5.6
|
php: 5.5
|
||||||
- 7.0
|
- dist: xenial
|
||||||
- 7.1
|
php: 5.6
|
||||||
- 7.2
|
- dist: xenial
|
||||||
- 7.3
|
php: 7.0
|
||||||
- nightly
|
- dist: xenial
|
||||||
- hhvm
|
php: 7.1
|
||||||
|
- dist: xenial
|
||||||
matrix:
|
php: 7.2
|
||||||
allow_failures:
|
- dist: xenial
|
||||||
- php: nightly
|
php: 7.3
|
||||||
- php: hhvm
|
- dist: xenial
|
||||||
|
php: 7.4
|
||||||
|
- dist: xenial
|
||||||
|
php: nightly
|
||||||
|
- dist: xenial
|
||||||
|
php: hhvm
|
||||||
|
allow_failures:
|
||||||
|
- php: nightly
|
||||||
|
- php: hhvm
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- printf "\n" | pecl install imagick
|
- printf "\n" | pecl install imagick
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
"guzzlehttp/psr7": "~1.1 || ^2.0"
|
"guzzlehttp/psr7": "~1.1 || ^2.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.8 || ^5.7",
|
"phpunit/phpunit": "^4.8 || ^5.7 || ^7.5.15",
|
||||||
"mockery/mockery": "~0.9.2"
|
"mockery/mockery": "~0.9.2"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
@@ -19,7 +19,7 @@ class FileTest extends TestCase
|
|||||||
public function testBasePath()
|
public function testBasePath()
|
||||||
{
|
{
|
||||||
$file = new File;
|
$file = new File;
|
||||||
$this->assertNull(null, $file->basePath());
|
$this->assertNull(null, $file->basePath() ?: '');
|
||||||
|
|
||||||
$file->dirname = 'foo';
|
$file->dirname = 'foo';
|
||||||
$file->basename = 'bar';
|
$file->basename = 'bar';
|
||||||
|
Reference in New Issue
Block a user