Skip to content

Commit

Permalink
Skip Symfony 3.4 tests on PHP 8 (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead authored Dec 9, 2020
1 parent 841153e commit 8217801
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 50 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ cache:
- $COMPOSER_CACHE_DIR

matrix:
exclude:
- env: SYMFONY_VERSION=^3.4 COMPOSER_FLAGS=--prefer-lowest
php: 8.0snapshot
allow_failures:
- env: SYMFONY_VERSION=dev-master

Expand Down
33 changes: 12 additions & 21 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
<?php

$loader = @include __DIR__.'/../vendor/autoload.php';
if (!$loader) {
die(<<<'EOT'
You must set up the project dependencies, run the following commands:
wget http://getcomposer.org/composer.phar
php composer.phar install
EOT
);
}

passthru(sprintf('rm -rf %s/App/cache', __DIR__));
spl_autoload_register(function ($class) {
if (0 === strpos($class, 'Oneup\\FlysystemBundle\\')) {
$path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 2)).'.php';
if (!stream_resolve_include_path($path)) {
return false;
}
require_once $path;
declare(strict_types=1);

return true;
}
});
if (!($loader = @include __DIR__ . '/../vendor/autoload.php')) {
echo <<<'EOT'
You need to install the project dependencies using Composer:
$ wget http://getcomposer.org/composer.phar
OR
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar install --dev
$ phpunit
EOT;
exit(1);
}
68 changes: 39 additions & 29 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"name": "oneup/flysystem-bundle",
"type": "symfony-bundle",
"description": "Integrates Flysystem filesystem abstraction library to your Symfony project.",
"keywords": ["symfony", "flysystem", "filesystem", "abstraction"],
"keywords": [
"symfony",
"flysystem",
"filesystem",
"abstraction"
],
"homepage": "https://1up.io",
"license": "MIT",
"authors": [
Expand All @@ -19,66 +24,71 @@
"role": "Developer"
}
],

"require": {
"php": ">=7.0",
"symfony/config": "^3.4|^4.0|^5.0",
"symfony/dependency-injection": "^3.4|^4.0|^5.0",
"symfony/http-kernel": "^3.4|^4.0|^5.0",
"league/flysystem": "^1.0.26"
"php": ">=7.1",
"league/flysystem": "^1.0.26",
"symfony/config": "^3.4 || ^4.0 || ^5.0",
"symfony/dependency-injection": "^3.4 || ^4.0 || ^5.0",
"symfony/http-kernel": "^3.4 || ^4.0 || ^5.0"
},

"require-dev": {
"phpunit/phpunit": "^6.5|^7.5|^8.5",
"symfony/finder": "^3.4|^4.0|^5.0",
"symfony/browser-kit": "^3.4|^4.0|^5.0",
"symfony/asset": "^3.4|^4.0|^5.0",
"symfony/framework-bundle": "^3.4|^4.0|^5.0",
"symfony/templating": "^3.4|^4.0|^5.0",
"symfony/translation": "^3.4|^4.0|^5.0",
"symfony/yaml": "^3.4|^4.0|^5.0",
"async-aws/flysystem-s3": "^0.4.0",
"jenko/flysystem-gaufrette": "^1.0",
"league/flysystem-aws-s3-v2": "^1.0",
"league/flysystem-azure-blob-storage": "^0.1",
"league/flysystem-cached-adapter": "^1.0",
"spatie/flysystem-dropbox": "^1.0",
"league/flysystem-gridfs": "^1.0",
"league/flysystem-memory": "^1.0",
"league/flysystem-rackspace": "^1.0",
"league/flysystem-replicate-adapter": "^1.0",
"league/flysystem-sftp": "^1.0",
"league/flysystem-webdav": "^1.0",
"league/flysystem-ziparchive": "^1.0",
"twistor/flysystem-stream-wrapper": "^1.0",
"litipk/flysystem-fallback-adapter": "^0.1",
"jenko/flysystem-gaufrette": "^1.0",
"phpunit/phpunit": "^6.5 || ^7.5 || ^8.5",
"spatie/flysystem-dropbox": "^1.0",
"superbalist/flysystem-google-storage": "^4.0",
"league/flysystem-replicate-adapter": "^1.0",
"async-aws/flysystem-s3": "^0.4.0"
"symfony/asset": "^3.4 || ^4.0 || ^5.0",
"symfony/browser-kit": "^3.4 || ^4.0 || ^5.0",
"symfony/finder": "^3.4 || ^4.0 || ^5.0",
"symfony/templating": "^3.4 || ^4.0 || ^5.0",
"symfony/translation": "^3.4 || ^4.0 || ^5.0",
"symfony/yaml": "^3.4 || ^4.0 || ^5.0",
"twistor/flysystem-stream-wrapper": "^1.0"
},

"suggest": {
"ext-fileinfo": "Required for MimeType",
"ext-ftp": "Required for FTP and SFTP",
"jenko/flysystem-gaufrette": "Allows you to use gaufrette adapter",
"league/flysystem-aws-s3-v2": "Use S3 storage with AWS SDK v2",
"league/flysystem-aws-s3-v3": "Use S3 storage with AWS SDK v3",
"league/flysystem-azure-blob-storage": "Allows you to use Azure Blob Storage adapter",
"league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching",
"spatie/flysystem-dropbox": "Use Dropbox storage",
"league/flysystem-gridfs": "Allows you to use GridFS adapter",
"league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files",
"league/flysystem-replicate-adapter": "Allows you to use the Replicate adapter from Flysystem",
"league/flysystem-sftp": "Allows SFTP server storage via phpseclib",
"league/flysystem-webdav": "Allows you to use WebDAV storage",
"league/flysystem-ziparchive": "Allows you to use ZipArchive adapter",
"league/flysystem-replicate-adapter": "Allows you to use the Replicate adapter from Flysystem",
"twistor/flysystem-stream-wrapper": "Allows you to use stream wrapper",
"litipk/flysystem-fallback-adapter": "Allows you to use a fallback filesystem",
"jenko/flysystem-gaufrette": "Allows you to use gaufrette adapter",
"superbalist/flysystem-google-storage": "Allows you to use Google Cloud Storage buckets"
"spatie/flysystem-dropbox": "Use Dropbox storage",
"superbalist/flysystem-google-storage": "Allows you to use Google Cloud Storage buckets",
"twistor/flysystem-stream-wrapper": "Allows you to use stream wrapper"
},
"config": {
"sort-packages": true
},

"autoload": {
"psr-4": { "Oneup\\FlysystemBundle\\": "" },
"psr-4": {
"Oneup\\FlysystemBundle\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"autoload-dev": {
"psr-4": {
"Oneup\\FlysystemBundle\\Tests\\": "tests"
}
}
}

0 comments on commit 8217801

Please sign in to comment.