Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
600 commits
Select commit Hold shift + click to select a range
92924b1
Merge pull request #476 from NiR-/pr-445
Apr 11, 2017
e41e64e
Merge pull request #467 from NiR-/docs/aws-s3-policies
Apr 12, 2017
0406627
Enable FTP_USEPASVADDRESS option only if the constant exists
Apr 13, 2017
f1996fa
Use newly created aws-s3-adapter metapackage in doc
Apr 12, 2017
f6a934e
Merge pull request #480 from NiR-/fix/ftp-usepassvaddress
Apr 17, 2017
665d49a
Add rename method to File
Mar 28, 2017
b59f027
Merge pull request #331 from WARrior-Alex/master
Apr 17, 2017
64a9991
deprecating adapters
nicolasmure Apr 21, 2017
18a9567
Merge pull request #482 from KnpLabs/fix/deprecating-adapters
Apr 25, 2017
2562558
Add sftp service
Apr 25, 2017
652ef2c
Use env vars to trigger functional tests for PhpseclibSftp adapter
Apr 25, 2017
c4522e9
Run PhpseclibSftp tests on travis
Apr 25, 2017
ef8a34d
Move IAM policy under Example section
Apr 26, 2017
25f4b58
Add an example for aws-sdk-php v2
Apr 26, 2017
e7ac96b
Add two links to AWS docs about IAM and IAM policies
Apr 26, 2017
1d22f09
Merge pull request #481 from NiR-/docs/aws-s3-adapter
nicolasmure May 13, 2017
c848999
Updated documentation for metapackages (resolves #478)
Shivoham May 16, 2017
8cf9d0a
Merge pull request #487 from KnpLabs/feature/metapackages-doc
May 17, 2017
d009748
Replace file_exists with is_file. Fixes #473
Apr 13, 2017
90d986c
Merge pull request #479 from KnpLabs/fix/local-adapter-exists
May 18, 2017
bf85dc4
Allow Local adapter mkdir mode to cascade to it's Stream
richardfullmer Jan 9, 2015
4e0fd51
Merge pull request #484 from NiR-/sftp-tests
May 20, 2017
c04e82e
Remove port bound locally
Apr 18, 2017
405d916
Add ftp service, based on vsftpd server
Apr 18, 2017
5248324
Execute functional tests for Ftp adapter when FTP_* env vars are decl…
Apr 18, 2017
4ae3a79
Set FTP_USEPASVADDRESS option only on valid ftp connections
Apr 19, 2017
9e4b2ee
Run functional tests for Ftp adapter on travis
Apr 18, 2017
53ac6f1
Merge pull request #483 from NiR-/ftp-tests
May 20, 2017
27af667
Refactor Adapter Local
May 20, 2017
e3fc589
Merge pull request #489 from beebop1032/beebop1032-Contributing-1
May 20, 2017
943f83a
Provide mime type through AwsS3 adapter
kcassam Jan 13, 2016
932d3d9
Fix tests case for listKeys
May 20, 2017
4dd666e
Tests mime type support for AwsS3 adapter
May 20, 2017
22ff85a
Add cases for keys() method of AwsS3 adapter
May 21, 2017
0e4b765
Merge pull request #468 from NiR-/file-rename-method
May 21, 2017
e14f898
Add FilesystemInterface
May 21, 2017
173d71a
Add vsftpd as a dependency of php containers
May 21, 2017
a905983
Merge pull request #491 from NiR-/pr-362
May 22, 2017
fbbc5d5
Merge pull request #492 from NiR-/add-filesystem-interface
May 22, 2017
c70df7b
Merge pull request #490 from NiR-/fix/aws-s3-tests-list-keys
May 22, 2017
6ec9661
Use common logic to delete local dirs during tear down
May 18, 2017
d3aeb05
Test chmod of directory created by LocalStream
May 18, 2017
5df82e4
Merge pull request #488 from NiR-/richardfullmer-local-stream-mkdir-mode
May 22, 2017
3b6729f
feature(AzureBlobStorage) add multi-container mode support
dkarlovi Apr 29, 2017
3cf9cd5
Merge pull request #486 from dkarlovi/feature/azure-multicontainer
May 26, 2017
cb07e61
Deprecate AwsS3::getUrl() method and promote new gaufrette/extras repo
Jun 2, 2017
1bfaa42
Add a doc page for gaufrette/extras
Jun 2, 2017
8fe4717
Merge pull request #496 from NiR-/deprecate/aws-get-url
Jun 2, 2017
5d7b5c4
Set umask to 0002 when asserting chmod of mkdir'ed dir equals 0770
Jun 3, 2017
708a530
Fix assertion on value returned by AwsS3::getUrl()
Jun 3, 2017
ff5420d
Merge pull request #498 from NiR-/fix/local-stream-umask
Jun 7, 2017
1551c52
Add microsoft/azure-storage to dev deps
Jun 8, 2017
7fa5818
Add skip message for AWS & Azure tests
Jun 8, 2017
c966d14
Rename environment variables related to Azure to follow its semantic
Jun 8, 2017
6d6a99a
Add a note about Flysystem adapter in the deprecation notice of Dropbox
Jun 8, 2017
ea302ca
Remove deprecation notice for GoogleCloudStorage
Jun 8, 2017
87917a9
Merge pull request #501 from NiR-/fix/deprecation-notices
Jun 8, 2017
eff1f93
Remove deps for deprecated adapters from suggest section
Jun 8, 2017
4cde584
Replace SDKs in suggest section with gaufrette metapackages
Jun 8, 2017
3aff5b7
Merge pull request #502 from NiR-/clean-composer-json
Jun 8, 2017
baaea1a
Randomise container used by Azure functional tests
Jun 8, 2017
3b3a913
Add default value for AZURE_ACCOUNT and AZURE_KEY
Jun 8, 2017
743f055
Merge pull request #500 from NiR-/azure-tests
Jun 8, 2017
1b59765
Remove support for php 5.4 & php 5.5
Mar 19, 2017
6470bd5
Run tests under php 7.0 & 7.1 on Travis
Jun 8, 2017
1317fd9
Skip tests for Ssh adapter if ssh2 ext isn't loaded
Jun 8, 2017
2cb135f
Skip phpspec examples if herzult/php-ssh is not installed
Jun 8, 2017
0a3ac9f
Randomise container name used by AzureMultiContainerBlobStorageTest
Jun 8, 2017
2257542
libzip isn't bundled with php anymore
Jun 8, 2017
11a75cf
Merge pull request #503 from NiR-/php7
Jun 9, 2017
5f4b978
Add a badge for AppVeyor
Jun 9, 2017
b6797f7
Move adapter instantiation logic to DoctrineDbalTest
Jun 8, 2017
91d4577
Add a functional test case for OpenCloud dapter
Jun 13, 2017
f7cc969
Converts lastModified string returned by OpenCloud SDK into timestamp
Jun 13, 2017
a893813
Compute length of content written by OpenCloud SDK
Jun 13, 2017
4c808c8
Clean travis.yml
Jun 13, 2017
9956987
Add env vars used by OpenCloud functional test to appveyor config
Jun 13, 2017
9b3c965
Disable flaky AzureMultiContainerBlobStorageTest for now
Jun 14, 2017
e0e8fbc
Complete CHANGELOG for v.0.4.0
May 24, 2017
7cd2806
Merge pull request #493 from NiR-/changelog
Jun 17, 2017
119b6b4
Bump branch-alias to 0.5.x-dev
Jun 17, 2017
c43d8fb
Add a note about deprecated adapters in the docs
Jun 17, 2017
396c5a7
Fixed typo
GrahamCampbell Jun 19, 2017
d3ea4d5
Merge pull request #506 from GrahamCampbell/patch-1
Jun 19, 2017
0ea5937
Add a little note about the new dependency for zip extension
Jun 26, 2017
0c630c2
Fix S3Client instantiation (for aws sdk v2) in the doc
Jun 26, 2017
ba99b50
Add a note about metapackages
Jun 26, 2017
7012b05
Add the list of maintainer(s) per adapter
Jun 26, 2017
f606bc4
Ignore errors during installation of ssh2 extension
Jun 26, 2017
c85c991
Fix `tests` script
Jun 26, 2017
24c8cf8
Merge pull request #511 from NiR-/fix/dockerfile-71
nicolasmure Jun 27, 2017
8448da0
Inherits FunctionalTestCase from AwsS3Test
Jul 2, 2017
f7e9c91
AwsS3::listKeys() was generating an error if the bucket did not exist
Jul 2, 2017
be5adec
Fix build of php70 image
Jul 2, 2017
5d06478
Fix some phpdocs
Jul 2, 2017
0913979
Merge pull request #510 from NiR-/fix/docs
Jul 2, 2017
ba8e1c4
Deduplicate tearDown logic from SafeLocalTest
Jul 2, 2017
cd9eedd
Merge pull request #514 from NiR-/aws-tests-inherit-common-cases
Jul 3, 2017
2d1638a
Run Azure tests on appveyor
Jun 9, 2017
9713649
Fix appveyor
Jun 9, 2017
8e60501
Skip test related to symlink on windows
Jun 13, 2017
093f8a7
Concrete TestCases are responsible for cleaning up storage during tea…
Jun 14, 2017
053f38e
Skip ZipTest and warn about instability of Zip adapter on Windows
Jun 14, 2017
1eb0ef8
Fix stream-related bugs under windows
Jun 14, 2017
951940e
Execute phpunit tests on appveyor with verbose mode
Jun 27, 2017
c849505
Enable php_curl extension on appveyor
Jun 27, 2017
2efdcad
Merge pull request #512 from NiR-/azure-tests-on-appveyor
nicolasmure Jul 3, 2017
9a9b05a
Fix incomplete tear down phase for AwsS3Test
Jul 6, 2017
3dd9fcc
Merge pull request #516 from NiR-/fix-incomplete-aws-tear-down
nicolasmure Jul 7, 2017
6fd9bdd
Added support for calculated size for Azure Blob Storage
gerkestam2 Aug 15, 2017
385e7f7
Fix FTP tests
Sep 13, 2017
a89094a
Fix PhpseclibSftp fetchKeys's function when the directory doesn't exist
Sep 13, 2017
87fcfcf
Fix port mapping orders
Sep 13, 2017
0311450
Fix travis on PHP 5.6
Sep 13, 2017
d531e2c
Fix spec test suite
Sep 13, 2017
c11e4fc
Merge pull request #527 from Lctrs/fix/travis-ftp-tests
nicolasmure Sep 15, 2017
2599af4
Bump PHPUnit to ^5.6.8
Sep 20, 2017
4aa8d36
Enable mbstring extension on AppVeyor
Sep 20, 2017
4ae71bf
Merge pull request #529 from Lctrs/bump-phpunit
Sep 20, 2017
e1d5911
Use composer's autoload-dev
Sep 20, 2017
911d706
Merge pull request #530 from Lctrs/autoload-dev
Sep 21, 2017
0e90531
Updated based on feedback PR
gerkestam2 Sep 27, 2017
b30754b
Merge pull request #523 from gerkestam2/size-azure-blob
nicolasmure Oct 2, 2017
382bcf7
Drop HHVM support + sync docker conf with Travis
Oct 2, 2017
91d8af9
Merge pull request #528 from Lctrs/patch-1
Oct 4, 2017
dbfacd4
Fixed typo
dawkaa Dec 15, 2017
1ac7d38
Merge pull request #538 from dawkaa/typo
Dec 15, 2017
de57d3c
fix travis build for php 5.6
nicolasmure Jan 4, 2018
21cda6d
Merge pull request #543 from KnpLabs/fix/build
nicolasmure Jan 4, 2018
31ab604
GridFS Metadata retrieve from bucket
bsperduto Oct 28, 2017
bd5dc87
Updated formatting
bsperduto Jan 4, 2018
6364659
Fixed line encoding
bsperduto Jan 4, 2018
42cf3a0
Merge pull request #535 from bsperduto/gridfs-metadata-retrieve
nicolasmure Jan 4, 2018
57f6b15
Quickfix for Adapter/AwsS3, check if count() call is allowed.
Dec 15, 2017
ee582de
Merge pull request #544 from KnpLabs/fix/awss3-count
nicolasmure Jan 4, 2018
ac60010
Refactoring tests
carusogabriel Jan 4, 2018
2f22865
Merge pull request #542 from carusogabriel/refactoring-tests
nicolasmure Jan 4, 2018
0c6f379
bump branch alias to 0.6.x-dev
nicolasmure Jan 5, 2018
7918828
update changelog
nicolasmure Jan 5, 2018
2d0e34a
Merge pull request #545 from KnpLabs/bump/branch-alias
nicolasmure Jan 5, 2018
c3126d5
Merge pull request #546 from KnpLabs/fix/changelog
nicolasmure Jan 5, 2018
aaa66dc
Fix Dockerfile for php 7.0
Jan 5, 2018
91337a0
fix appveyor build
nicolasmure Mar 20, 2018
d413c69
Merge pull request #562 from KnpLabs/fix/appveyor
nicolasmure Mar 20, 2018
04e7b3f
Add support for major release of Azure Blob Storage SDK
z38 Mar 25, 2018
1063b8f
Merge pull request #558 from z38/azure-blob-storage
nicolasmure Mar 26, 2018
1d16f62
prepare v0.6 release
nicolasmure Mar 26, 2018
a7c71ed
Merge pull request #563 from KnpLabs/release-0.6
nicolasmure Mar 26, 2018
50d5485
Add PutObjectAcl in the required permission
tristanbes Apr 18, 2018
8da31a6
Merge pull request #566 from tristanbes/patch-1
nicolasmure Apr 18, 2018
172a352
Update .travis.yml
andreybolonin Apr 19, 2018
e9b806b
Merge pull request #567 from andreybolonin/master
nicolasmure Apr 19, 2018
ac53010
docs fix
jakob-stoeck Apr 25, 2018
827dc53
Merge pull request #570 from jakob-stoeck/patch-1
nicolasmure Apr 26, 2018
5be9eae
Ensure correct return type from Flysystem adapter "exists" method
teohhanhui May 28, 2018
dd0d2e9
Merge pull request #572 from teohhanhui/fix/flysystem-adapter-exists
nicolasmure May 29, 2018
7eb06fb
FilesystemMap::set() should expects FilesystemInterface instead of Fi…
clement-michelet Aug 30, 2018
a0627e9
Merge pull request #576 from clement-michelet/bugfix/filesystem-map-s…
nicolasmure Aug 30, 2018
a244edd
fix opencloud tests
nicolasmure Sep 7, 2018
34da54d
Merge pull request #579 from KnpLabs/fix/tests
nicolasmure Sep 7, 2018
4d335f4
fix branch alias as v0.7.0 is released
nicolasmure Sep 6, 2018
39b4e3d
Merge pull request #577 from KnpLabs/fix/branch-alias
nicolasmure Sep 7, 2018
608d107
fix appveyor build
nicolasmure Nov 23, 2018
d64c7f9
Merge pull request #589 from KnpLabs/fix/appveyor-build
nicolasmure Nov 23, 2018
38a3de4
add and fix php 7.3
andreybolonin Oct 27, 2018
e6b85c8
drop support for php 5.6 and 7.0
nicolasmure Jan 12, 2018
a92f19e
Implement ChecksumCalculator Interface
damijank Dec 12, 2018
b54a01e
remove old dockerfiles
nicolasmure Dec 10, 2018
d0ede04
Merge pull request #593 from KnpLabs/feature/php7.3-support
nicolasmure Dec 13, 2018
cc83b7e
Add test for ChecksumCalculator in AzureBlobStorage adapter
damijank Dec 13, 2018
627a836
Fix ini_get() for boolean values
deguif Oct 31, 2018
9c520a9
Merge pull request #595 from KnpLabs/fix/booleans
nicolasmure Dec 13, 2018
7a92aba
Merge pull request #594 from damijank/patch-1
nicolasmure Dec 13, 2018
a57e401
prepare v0.8 release
nicolasmure Dec 13, 2018
1f7c4bf
Merge pull request #597 from KnpLabs/feature/prepare-0.8-release
nicolasmure Dec 21, 2018
de40f5e
Cannot call `$this->delete($this->computePath($sourceKey))` with opti…
jerome-arzel Jan 10, 2019
63e778c
Merge pull request #598 from quitoque/fix/gcs-rename
nicolasmure Jan 10, 2019
d634708
prepare v0.8.1 release
nicolasmure Jan 11, 2019
80cc42e
Merge pull request #599 from KnpLabs/prepare-v0.8.1
nicolasmure Jan 11, 2019
17313c5
Adding SizeCalculator support to GridFS
bsperduto Jan 26, 2019
c86cbac
declare a FilesystemMapInterface
nicolasmure Feb 19, 2019
7d8b731
Change Filesystem to FilesystemInterface in File
athlan May 30, 2019
33b0216
Merge pull request #604 from KnpLabs/feature/filesystem-map-interface
nicolasmure Jun 4, 2019
8d8d40c
Merge pull request #603 from bsperduto/rel/gridfs-size-calculator
nicolasmure Jun 4, 2019
9260f3c
[GridFS] FIx : return empty array when object has no metadata
bsperduto Jan 26, 2019
93822b6
Merge pull request #609 from KnpLabs/rel/gridfs-metadata-error-fix
nicolasmure Jun 4, 2019
c85b964
Fix directory deletion
Dec 14, 2018
8b23f73
add doc about Local adapter directory deletion feature
nicolasmure Jun 5, 2019
59ac94b
Merge pull request #610 from KnpLabs/feature/local-adapter-delete-dir…
nicolasmure Jun 5, 2019
512a968
prepare v0.8.2 release
nicolasmure Jun 5, 2019
62075d0
Merge pull request #611 from KnpLabs/release/v0.8.2
nicolasmure Jun 5, 2019
fae35c9
Merge pull request #608 from athlan/patch-1
nicolasmure Jun 6, 2019
5ce4f20
prepare v0.8.3 release
nicolasmure Jun 6, 2019
1d44b7a
Merge pull request #612 from KnpLabs/release/v0.8.3
nicolasmure Jun 6, 2019
f2f3822
fix docker setup
nicolasmure Sep 7, 2018
cf2b581
do not install ssh2 ext for php 7.3 as it is not available yet
nicolasmure Jun 7, 2019
7507f57
Merge pull request #580 from KnpLabs/fix/docker
nicolasmure Jun 11, 2019
7a4d345
Define env vars in .env file only
nicolasmure Jun 11, 2019
350f0f6
Merge pull request #615 from KnpLabs/fix/env-vars-usage
nicolasmure Jun 18, 2019
30c90ab
php CS config
nicolasmure Jun 18, 2019
d7fb1b1
PHP CS fix (make php-cs-fix)
nicolasmure Jun 18, 2019
b488cf8
Merge pull request #617 from KnpLabs/fix/php-cs
nicolasmure Jun 28, 2019
0c31221
Test enhancement
peter279k Oct 22, 2019
2216a72
Merge pull request #627 from open-source-contributions/test_enhancement
nm2107 Oct 24, 2019
3762238
Add MimeTypeProvider to AzureBlobStorage.
rg-codewave Dec 19, 2019
d7ce6c1
Fix string quotes
rg-codewave Dec 19, 2019
dd7f075
Merge pull request #630 from cdwv/master
nm2107 Dec 26, 2019
70bd8b4
prepare v0.9.0 release
nm2107 Dec 26, 2019
786247e
Merge pull request #631 from nm2107/prepare-v0.9-release
nm2107 Dec 26, 2019
8672d9d
fix trigger_error argument order
hc100 Dec 31, 2019
d17a2e3
Merge pull request #632 from hc100/bug-trigger_error_args
nm2107 Jan 2, 2020
ea3932b
Adding some Github actions (#641)
Nyholm Oct 5, 2020
6f113b6
Remove deprecated code (#642)
Nyholm Oct 5, 2020
8bbfa95
Test on PHP 7.4 (#640)
Nyholm Oct 5, 2020
a786092
Better testing on protected branches (#643)
Nyholm Oct 5, 2020
dfcc2e6
Adding support for AsyncAws (#639)
Nyholm Oct 5, 2020
ef5ec9d
Prepare 0.10.0 (#645)
Nyholm Oct 5, 2020
80694cf
minor (#646)
Nyholm Oct 9, 2020
a7284ee
Some fixes on test suite (#655)
Nek- Aug 10, 2022
f353765
Update CI badge
Nek- Aug 10, 2022
e6d0749
:art: Review makefile (#656)
Nek- Aug 20, 2022
75b5eb3
⬆️ Starts dependencies & test upgrades and fixes for PHP 8! (#658)
Nek- Sep 21, 2022
bab98cb
:green_heart: Update PHP CS Fixer! (#659)
Nek- Sep 21, 2022
79b030a
:bug: Fix infinite loop in ftp adapter (php 8.1) (#663)
Nek- Sep 24, 2022
90f8e1e
:white_check_mark: Fix AWS S3 (no async) test (#660)
Nek- Sep 24, 2022
0586f16
:white_check_mark: Fix deprecations triggered by doctrine test (#662)
Nek- Sep 24, 2022
1b392c0
:heavy_minus_sign: remove sf4 event dispatcher dependency (#665)
Nek- Sep 25, 2022
a805ed6
:white_check_mark: Fix Azure blob storage tests (#661)
Nek- Sep 30, 2022
6a1293a
👽 Fix Google Cloud Storage adapter (#664)
Nek- Sep 30, 2022
e5a4057
Fix wrong dependency version in the readme (#668)
Nek- Sep 30, 2022
0dd315f
:white_check_mark: Update LocalTest (remove deprecated) (#667)
Nek- Sep 30, 2022
7aa0b99
:white_check_mark: Update GridFS test (#666)
Nek- Sep 30, 2022
8da9c9e
:white_check_mark: Fix zip test (#670)
Nek- Sep 30, 2022
221c7db
:coffin: Remove useless adapter test (#671)
Nek- Oct 7, 2022
54a66d2
:fire: Remove support for OpenCloud (#669)
Nek- Oct 7, 2022
4628376
:memo: Remove doc about opencloud (#672)
Nek- Oct 7, 2022
dd31ed2
:construction_worker: Fix phpstan execution on CI (#674)
Nek- Oct 7, 2022
d22b8e1
:construction_worker: Add BC Check to Makefile (#675)
Nek- Oct 7, 2022
b9638cc
:memo: Update changelog after some fix (#676)
Nek- Oct 7, 2022
e1eccd8
❤️ Stands with Ukraine (#673)
Nek- Oct 7, 2022
df86fe5
:green_heart: Fix GoogleCloudStorage CI execution (#677)
Nek- Oct 7, 2022
aa121d5
Fixed gramatical errors in README.md (#678)
sriram-km Oct 7, 2022
6105396
:arrow_up: Compatibility with doctrine/dbal 3.x (#681)
Nek- Oct 14, 2022
e989211
:memo: update changelog with latests changes (#682)
Nek- Oct 14, 2022
d193cb7
:hammer: update script to run all tests (#680)
Nek- Oct 14, 2022
9bc0118
Fixed azure blob write method (#683)
Nov 3, 2022
1961e11
Fix #649 - Remove useless files from users and servers (#679)
williamdes Nov 3, 2022
3cc396c
Prepare release 0.11.1
Nek- Nov 3, 2022
dcfb86a
Add tests and docker folders in .gitattributes (#704)
alamirault Oct 19, 2023
ceb9f23
fix: make commande to remove phpspec adapter (#707)
KevinArtus Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore all by default
*
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2

[Makefile]
indent_style = tab
22 changes: 22 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
AWS_KEY=
AWS_SECRET=
AWS_BUCKET=

AZURE_ACCOUNT=
AZURE_KEY=
AZURE_CONTAINER=

FTP_HOST=ftp
FTP_PORT=21
FTP_USER=gaufrette
FTP_PASSWORD=gaufrette
FTP_BASE_DIR=/gaufrette

MONGO_URI=mongodb://mongodb:27017
MONGO_DBNAME=gridfs_test

SFTP_HOST=sftp
SFTP_PORT=22
SFTP_USER=gaufrette
SFTP_PASSWORD=gaufrette
SFTP_BASE_DIR=gaufrette
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.github export-ignore
/.php-cs-fixer.dist.php export-ignore
/phpstan.neon.dist export-ignore
/phpstan-baseline.neon export-ignore
/.editorconfig export-ignore
/.travis.yml export-ignore
/appveyor.yml export-ignore
/psalm.baseline.xml export-ignore
/psalm.xml export-ignore
/bin export-ignore
/doc export-ignore
/docker export-ignore
/tests export-ignore
2 changes: 2 additions & 0 deletions .github/workflows/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.yml]
indent_size = 2
10 changes: 10 additions & 0 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on: [push, pull_request]
name: Roave
jobs:
roave_bc_check:
name: BC Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Tests
on: [push, pull_request]

jobs:

build:
name: Build
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
php: ['7.4', '8.0', '8.1']

steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: flex

- name: Checkout code
uses: actions/checkout@v2

- name: Download dependencies
run: |
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable

- name: Remove PHPSpec adapter tests
run: make remove-phpspec

- name: PHPSpec
run: php vendor/bin/phpspec run -fpretty --verbose

- name: PHPUnit
run: php vendor/bin/phpunit

adapter:
name: Adapter
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
run:
- { php: '8.1', packages: 'async-aws/simple-s3:^1.0', phpspec: 'spec/Gaufrette/Adapter/AsyncAwsS3Spec.php' }
- { php: '8.1', packages: 'aws/aws-sdk-php:^3.158', phpspec: 'spec/Gaufrette/Adapter/AwsS3Spec.php' }
- { php: '8.1', packages: 'google/apiclient:^2.12', phpspec: 'spec/Gaufrette/Adapter/GoogleCloudStorageSpec.php' }
- { php: '8.1', packages: 'doctrine/dbal:^2.3', phpspec: 'spec/Gaufrette/Adapter/DoctrineDbalSpec.php' }
- { php: '8.1', packages: 'doctrine/dbal:^3.4', phpspec: 'spec/Gaufrette/Adapter/DoctrineDbalSpec.php' }
- { php: '8.1', packages: 'league/flysystem:^1.0', phpspec: 'spec/Gaufrette/Adapter/FlysystemSpec.php' }
- { php: '8.1', packages: 'microsoft/azure-storage-blob:^1.0', phpspec: 'spec/Gaufrette/Adapter/AzureBlobStore' }
- { php: '8.1', packages: 'mongodb/mongodb:^1.1', phpspec: 'spec/Gaufrette/Adapter/GridFSSpec.php' }
- { php: '8.1', packages: 'phpseclib/phpseclib:^2.0', phpspec: 'spec/Gaufrette/Adapter/PhpseclibSftpSpec.php' }

steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.run.php }}
coverage: none
tools: flex

- name: Checkout code
uses: actions/checkout@v2

- name: Download dependencies
run: |
composer req ${{ matrix.run.packages }} --no-update
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable

- name: PHPSpec
if: ${{ matrix.run.phpspec }}
run: php vendor/bin/phpspec run -fpretty --verbose ${{ matrix.run.phpspec }}

- name: PHPUnit
run: php vendor/bin/phpunit
80 changes: 80 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
on: [push, pull_request]
name: Static analysis

jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest

steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mongo, mbstring, fileinfo
tools: composer:v2

- name: Checkout code
uses: actions/checkout@v2

- name: Download dependencies
run: |
make require-all
composer require --dev --no-update phpstan/phpstan:1.8.8
composer update --no-interaction --prefer-dist

- name: PHPStan
run: |
./vendor/bin/phpstan --version
./vendor/bin/phpstan analyse


php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest

steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mongo, mbstring, fileinfo
tools: composer:v2

- name: Checkout code
uses: actions/checkout@v2

- name: Download dependencies
run: |
make require-all
composer update --no-interaction --prefer-dist

- name: PHP-CS-Fixer
run: |
./vendor/bin/php-cs-fixer --version
./vendor/bin/php-cs-fixer fix --diff --dry-run --show-progress=none

psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mongo, mbstring, fileinfo
tools: composer:v2

- name: Checkout code
uses: actions/checkout@v2

- name: Download dependencies
run: |
make require-all
composer require --dev --no-update psalm/phar:3.16
composer update --no-interaction --prefer-dist

- name: Psalm
run: |
./vendor/bin/psalm.phar --version
./vendor/bin/psalm.phar --output-format=github --no-progress --show-info=false --stats
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
vendor/
bin/*
!bin/tests
!bin/tests-all
composer.lock
doc/.couscous
.env
.php_cs.cache
.php-cs-fixer.cache
phpunit.xml
tests/adapters/*
!tests/adapters/*.dist
bin/*
!bin/configure_test_env.sh
vendor/
tests/Gaufrette/Functional/adapters/*.php
41 changes: 41 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

return (new PhpCsFixer\Config())
->setFinder(PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
)
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'array_syntax' => [ 'syntax' => 'short' ],
'binary_operator_spaces' => true,
'blank_line_before_statement' => true,
'cast_spaces' => true,
'combine_consecutive_unsets' => true,
'concat_space' => [ 'spacing' => 'one' ],
'linebreak_after_opening_tag' => true,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_break_comment' => false,
'no_extra_blank_lines' => true,
'no_spaces_around_offset' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'normalize_index_brace' => true,
'PedroTroller/phpspec' => true,
'phpdoc_indent' => true,
'phpdoc_to_comment' => true,
'phpdoc_trim' => true,
'single_quote' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
'trim_array_spaces' => true,
])
->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers())
;
59 changes: 46 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,46 @@
language: php

php:
- 5.3
- 5.4

before_script:
- ./bin/configure_test_env.sh
- composer self-update && composer install --dev --prefer-source

script:
- php bin/phpspec run -fpretty --verbose
- bin/phpunit
language: php

sudo: required

cache:
directories:
- $HOME/.composer/cache/files

services:
- mongodb
- docker

env:
- MONGO_URI="mongodb://127.0.0.1:27017"
MONGO_DBNAME="gridfs_test"
SFTP_HOST=localhost
SFTP_PORT=2222
SFTP_USER=gaufrette
SFTP_PASSWORD=gaufrette
SFTP_BASE_DIR=gaufrette
FTP_HOST=localhost
FTP_PORT=21
FTP_USER=gaufrette
FTP_PASSWORD=gaufrette
FTP_BASE_DIR=/gaufrette/

matrix:
include:
- php: '7.1'
- php: '7.2'
- php: '7.3'
- php: '7.4'

before_install:
- echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- docker run -p ${SFTP_PORT}:22 -d atmoz/sftp:alpine ${SFTP_USER}:${SFTP_PASSWORD}:::${SFTP_BASE_DIR}
- docker run -d --name ftpd_server -p ${FTP_PORT}:21 -p 30000-30009:30000-30009 -e "PUBLICHOST=${FTP_HOST}" stilliard/pure-ftpd
- docker exec -it ftpd_server sh -c "(echo ${FTP_PASSWORD}; echo ${FTP_PASSWORD}) | pure-pw useradd ${FTP_USER} -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u ftpuser -d /home/ftpusers/${FTP_USER}"

install:
- make require-all-legacy
- composer update --prefer-dist --no-progress --no-suggest --ansi

script:
- php vendor/bin/phpunit --verbose
Loading
Loading