Nils Adermann
ec9ca9e739
Merge pull request #8952 from Seldaek/parallel-installs
...
Parallel zip installs
2020-06-16 14:11:49 +02:00
Jordi Boggiano
aea074308c
Update batching to install plugin deps before the plugin (alone an own batch)
2020-06-16 14:07:30 +02:00
Jordi Boggiano
ee58f25c00
Fix ZipDownloaderTest
2020-06-16 14:00:25 +02:00
Jordi Boggiano
085fe4e7e5
Add --no-progress support and a few more fixes
2020-06-16 14:00:24 +02:00
Jordi Boggiano
9c78eda7db
Fix FileDownloader::update impl to handle promises
2020-06-16 14:00:23 +02:00
Jordi Boggiano
87a0fc5506
Execute operations in batches to make sure plugins install in the expected order
2020-06-16 14:00:22 +02:00
Jordi Boggiano
9f380d606c
Add basic progress bar capability while waiting for jobs to complete
2020-06-16 14:00:22 +02:00
Jordi Boggiano
b1e15c7725
Fix a couple async bugs
2020-06-16 14:00:21 +02:00
Jordi Boggiano
3af617efe8
Parallelize zip extraction using async unzip processes
2020-06-16 14:00:20 +02:00
Jordi Boggiano
8f6e82f562
Add support for aborting running promises cleanly
2020-06-16 14:00:20 +02:00
Jordi Boggiano
0dad963cd8
Add executeAsync to ProcessExecutor and allow Loop class to wait on it in addition to HttpDownloader
2020-06-16 14:00:19 +02:00
Jordi Boggiano
d5286d0cb8
Add a way for FileDownloader subclasses to add paths to the cleanup stage
2020-06-16 14:00:18 +02:00
Nils Adermann
cda9849d19
Merge pull request #8982 from Seldaek/fix-inline-aliases-when-extracting-dev-reqs
...
Fix inline aliases not being loaded when extracting dev requirements
2020-06-16 13:58:07 +02:00
Jordi Boggiano
a797ee1322
Fix inline aliases not being loaded when extracting dev requirements, fixes #8954
2020-06-16 13:50:29 +02:00
Jordi Boggiano
da6c0635d2
Merge pull request #8980 from stucki/discard-using-git-clean
...
Discard changes is incomplete if Git project has additional folders
2020-06-16 11:08:44 +02:00
Jonas Drieghe
8da2811dc3
Add new summary format for licenses ( #8973 )
...
* Add new summary format to render the number of dependencies for each used license
* Array dereferencing wasn't available on php 5.3
* Add summary format to documentation
2020-06-16 10:07:53 +02:00
Ayesh Karunaratne
d906ff12c9
PHPStan fixes: `autoload_files`, and `ignoreErrors` ( #8974 )
...
* PHPStan: Remove autoload_files directive as it is not necessary anymore
* PHPStan: Add error exclusions for sapi_windows_set_ctrl_handler function
* PHPStan: Add error exclusions for ZipArchive::LIBZIP_VERSION
* PHPStan: Require phpstan ^0.12.26
* Ensure zip ext is available on gh actions
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2020-06-16 10:05:44 +02:00
Michael Chekin
6d9bf42655
Additional Util\RemoteFileSystem tests ( #8960 )
...
* RemoteFilesystemTest: simplifying some mock expectations calls
- will($this->returnValue()) to willReturn()
- will($this->returnCallBack()) to willReturnCallback()
* RemoteFilesystemTest: extracting identical mocks for IOInterface into a separate getIOInterfaceMock() method
* RemoteFilesystemTest: converting protected helper methods to private.
* RemoteFilesystemTest: moving getConfigMock() private method after the public methods (with other private methods)
* adding RemoteFileSystemTest::testCopyWithRetryAuthFailureFalse() unit test.
* Allow optional injecting of AuthHelper into RemoteFilesystem constructor.
* adding RemoteFileSystemTest::testCopyWithSuccessOnRetry() unit test.
* using backward compatible @expectedException in RemoteFilesystemTest.php
* RemoteFilesystemTest: extracting RemoteFilesystem with mocked method creation into a separate method.
* RemoteFilesystemTest: extracting AuthHelper with mocked method creation into a separate method.
2020-06-16 09:35:33 +02:00
Fränz Friederes
5c13c97428
Implement type and context properties in PreFileDownloadEvent
2020-06-15 21:43:41 +02:00
Michael Stucki
ae59047166
Clean Git repos during discard
2020-06-15 21:42:41 +02:00
Fränz Friederes
907367ff43
Fix PHPDoc issue
2020-06-15 21:28:27 +02:00
johnstevenson
54debe8210
Respect disable-tls in Versions::getLatest
...
Use http to get the latest version when disable-tls is true and error-
trap DiagnoseCommand::checkVersion so that all checks can complete.
Fixes #8657 .
2020-06-15 13:08:38 +02:00
Jordi Boggiano
a17bbec842
Avoid double warnings about composer.json when running outdated, fixes #8958
2020-06-15 13:04:02 +02:00
Fränz Friederes
13bdf8553a
Add setProcessedUrl method to PreFileDownloadEvent
2020-06-11 21:53:31 +02:00
Graham Campbell
a97d13fc6d
Fixed typo
...
Co-authored-by: ZhangWei <zhwei.yes@gmail.com>
2020-06-08 09:33:40 +01:00
Graham Campbell
491067f253
Fixed wording
2020-06-07 22:31:24 +01:00
Graham Campbell
fa799970ad
Replace whitelist with allow list
2020-06-07 22:15:09 +01:00
Jordi Boggiano
2fa58ccf96
Reduce amount of packages loaded by avoiding extensions of the constraint beyond the root constraint
2020-06-06 17:18:42 +02:00
Jordi Boggiano
4b9b499ce5
Fix issue loading aliases and fix markPackageNameForLoading when called twice in a row for same package it would overwrite the constraint the second time
2020-06-06 17:16:54 +02:00
Jordi Boggiano
b7f1550896
Add test covering replacer unfixing
2020-06-06 15:20:14 +02:00
Jordi Boggiano
f2befc46c9
Avoid storing duplicate packages when loading the same package twice
2020-06-05 17:13:39 +02:00
Jordi Boggiano
67a88880ec
Get rid of EmptyConstraint
2020-06-05 16:52:24 +02:00
Jordi Boggiano
cb19347031
Update to latest master
2020-06-05 16:52:24 +02:00
Yanick Witschi
b6c436598b
Updated to latest semver intervals
2020-06-05 16:52:24 +02:00
Yanick Witschi
6ef47baca1
Added a todo for package dupes
2020-06-05 16:52:24 +02:00
Yanick Witschi
014e9d5dd1
Fixed last remaining pool builder test
2020-06-05 16:52:24 +02:00
Yanick Witschi
5097ed6480
Fixed another test
2020-06-05 16:52:24 +02:00
Yanick Witschi
5a835db24d
Fixed another partial update test
2020-06-05 16:52:24 +02:00
Yanick Witschi
7be24dccd9
Fixed some of the partial update tests
2020-06-05 16:52:24 +02:00
Yanick Witschi
225a6a0a82
Improved variable naming
2020-06-05 16:52:24 +02:00
Yanick Witschi
c7f10bdd90
Fixed RuleTest
2020-06-05 16:52:24 +02:00
Yanick Witschi
0955d38374
Simplify package loading
2020-06-05 16:52:24 +02:00
Yanick Witschi
779b56ab2b
Fixed psalm annotations
2020-06-05 16:52:24 +02:00
Yanick Witschi
b00291cf21
CS
2020-06-05 16:52:24 +02:00
Yanick Witschi
00500f83c0
Using the current subset branch of @Seldaek to fix subset tests
2020-06-05 16:52:24 +02:00
Yanick Witschi
26877285ad
Filter duplicate packages
2020-06-05 16:52:24 +02:00
Yanick Witschi
bde9502473
Made the constraint argument in Link mandatory
2020-06-05 16:52:24 +02:00
Yanick Witschi
63906171f0
Cleanup EmptyConstraint output
2020-06-05 16:52:24 +02:00
Yanick Witschi
2427bef238
Typo
2020-06-05 16:52:24 +02:00
Yanick Witschi
b935a76bc6
Removed already covered test
2020-06-05 16:52:24 +02:00