Nils Adermann
bd6b4e433c
Use JsonFile::JSON_PRETTY_PRINT instead of php const for PHP 5.3 compat
2019-11-07 22:09:24 +01:00
Nils Adermann
737a613a50
Use array() instead of [] for PHP 5.3 compat
2019-11-07 22:01:37 +01:00
Nils Adermann
6925005ac9
Implement update mirrors/nothing/lock as its own installer mode
...
These special commands no longer (ab)use the partial update mechanism
but rather create a special install request for all current lock file
contents and later override any modified code references to the
originals. This leads to up to date remote metadata but no other
changes.
2019-11-07 17:35:44 +01:00
Jordi Boggiano
bc2a1d762a
Merge branch 'master' into 2.0
2019-10-30 08:54:44 +01:00
Nils Adermann
0873c4099b
Merge branch '1.9'
...
* 1.9:
Move test file parsing into try/catch block to avoid phpunit swallowing errors
2019-10-29 23:09:53 +01:00
Nils Adermann
6a335a459c
Move test file parsing into try/catch block to avoid phpunit swallowing errors
2019-10-29 23:08:03 +01:00
Arnout Boks
22caa0f097
Add tests for installer with lock: false
...
https://github.com/composer/composer/issues/8354
2019-10-20 10:51:59 +02:00
Nils Adermann
b700aa3d62
Sort local repo transaction as topological as possible
2019-09-07 06:05:02 +02:00
Nils Adermann
f5e18250e6
Merge remote-tracking branch 'github-composer/2.0' into solve-without-installed
...
* github-composer/2.0: (48 commits)
Fix missing use/undefined var
Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903
Fix use statement
Deduplicate findHeaderValue code
Add install-path to the installed.json for every package, fixes #2174 , closes #2424
Remove unnecessary config from phpstan
Make sure the directory exists and will not block installation later when downloading
Avoid wiping the whole target package if download of the new one fails, refs #7929
Only empty dir before actually installing packages, fixes #7929
Improve output when installing packages
Show best possible version in diagnose command
Remove extra arg
Allow path repos to point to their own source dir as install target, resulting in noop, fixes #8254
Fix use of decodeJson
Fix update mirrors to also update transport-options, fixes #7672
Fix updating or URLs to include dist type and shasum, fixes #8216
Fix origin computation
Improve handling of non-standard ports for GitLab and GitHub installs, fixes #8173
Load packages from the lock file for check-platform-reqs if no dependencies have been installed yet, fixes #8058
Fix error_handler return type declaration
...
2019-09-07 02:55:21 +02:00
Jordi Boggiano
8dfadd99d1
Merge branch '2.0' into fix/unused
2019-08-02 16:38:53 +02:00
Nils Adermann
10ada7bf82
Refactor Installer class into separate install and update processes
...
- Introduce separate Lock and LocalRepo transactions, one for changes
to the lock file, one for changes to locally installed packages based
on lock file
- Remove various hacks to keep dev dependencies updated and
incorporated the functionality into the transaction classes
- Remove installed repo, there are now local repo, locked repo and
platform repo
- Remove access to local repo from solver, only supply locked packages
- Update can now be run to modify the lock file but not install packages
to local repo
2019-02-11 01:00:02 +01:00
Jordi Boggiano
f946d8eb5a
More RemoteFilesystem usage removals and some repository/vcs driver refactorings
2019-01-14 17:29:23 +01:00
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
2019-01-14 17:29:23 +01:00
Jordi Boggiano
2e0f31106a
Merge remote-tracking branch 'origin/master' into 2.0
2018-11-12 16:01:07 +01:00
Gabriel Caruso
2a13bb2649
Fixes from PHPStan ( #7687 )
...
* fix docblocks
* remove redundant conditional
* fix wrong variable name
* fix wrong namespaces
* add missing private members
* remove unused/redundant arguments
* move testcase class
* exclude TestCase.php
* Tweak RuleWatchGraph type hints
* Tweak doc comment
2018-11-12 15:23:32 +01:00
Nils Adermann
96c812fb24
Properly buffer installer test output to display as errors if necessary
2018-09-12 13:27:10 +02:00
Nils Adermann
c0f19f6c57
Move construction of pool from repo set into a pool builder
...
Pool construction depends on the install request now, so only required
packages get loaded, add some structure for future asynchronously
loading composer repositories
2018-09-12 11:49:09 +02:00
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
2018-04-12 10:24:56 +02:00
Andreas Möller
6059acf0a3
Fix: Remove unused parameter and field
2017-12-27 13:20:12 +01:00
Jordi Boggiano
a1c5754b1f
Make sure tests run non-interactively
2017-12-18 17:18:59 +01:00
Jordi Boggiano
9a99e86ebc
Rename NonRoot to Transitive, refs #6674
2017-11-03 14:35:04 +01:00
Matthew Grasmick
776977f597
Fixing method name.
2017-09-11 13:53:56 -04:00
Matthew Grasmick
3826e51caa
Renaming some methods and props.
2017-09-11 12:38:54 -04:00
Matthew Grasmick
f29e98cdf9
Fixes #6661 : Allow a given package and its dependencies (including siblings) to be updated.
2017-09-11 11:16:15 -04:00
Jordi Boggiano
122e422682
CS fixes
2017-03-08 15:16:44 +01:00
Jordi Boggiano
eb84ca564f
Use unique cache dir for integration tests as well
2016-04-01 12:07:42 +01:00
Rob Bast
baa84d9be1
adjust test and assertion to be more flexible
2016-02-05 13:34:21 +01:00
Jordi Boggiano
8771eca527
Merge remote-tracking branch 'curry684/issue-4767'
2016-02-03 17:00:30 +00:00
Jordi Boggiano
49d7d65933
Add verbosity input support to IOInterface
2016-01-29 10:14:12 +00:00
Niels Keurentjes
3e06c801f4
Cleaned up check+conversion that was no longer required.
2016-01-27 13:49:52 +01:00
Niels Keurentjes
523362c7c5
Cleaner notation for expected exceptions in fixtures.
2016-01-27 13:46:14 +01:00
Niels Keurentjes
639ee0701c
Introduced more generic, less invasive way to test for exceptions in fixtures, more in line with how phpunit works.
2016-01-27 13:19:08 +01:00
Niels Keurentjes
e5fe3d8a3b
Expanded InstallerTest to support expecting Exceptions by supplying "EXCEPTION" as "--EXPECT--"
2016-01-27 10:04:45 +01:00
Jordi Boggiano
ce08582671
Fix CS
2015-09-28 10:53:24 +01:00
Jordi Boggiano
74e56fd5c6
Merge remote-tracking branch 'szeber/master'
2015-09-12 22:53:27 +01:00
Zsolt Szeberenyi
bfb83f1fb7
Add name and version to the relevant fields, move content hash checking to the Locker
2015-08-21 16:54:28 +12:00
Jordi Boggiano
6a64041055
CS fixes
2015-06-30 15:38:32 +01:00
Zsolt Szeberenyi
50b560fe4c
Add the hash of the parsed content of the composer.json to the lock file, and use it to verify the json is not changed
2015-06-12 22:24:31 +02:00
Rob Bast
cb336a5416
Implement writeError throughout Composer
2015-02-25 11:00:35 +01:00
Jordi Boggiano
0b4a9235f4
CS fixes
2015-02-24 14:22:54 +00:00
Nils Adermann
5e5eb069dc
Don't use a regex to parse installer tests to allow for longer tests
2015-01-27 17:02:37 +01:00
Nicolas Grekas
98b254a3ec
split update --prefer-lowest and --prefer-stable
2014-12-13 11:51:30 +01:00
Nicolas Grekas
4a0feb0189
add --prefer-lowest-stable to update command
2014-12-13 11:51:30 +01:00
Jordi Boggiano
46d8e50bf3
Fix test on windows
2014-12-07 14:02:17 +00:00
Chris Smith
0f9128a7d2
Add comment
2014-11-20 16:54:39 +00:00
Chris Smith
2e40f5f586
Add failing test case
2014-11-20 16:54:38 +00:00
Nils Adermann
6f4be698a5
Merge pull request #3325 from rdohms/implementing-abandoned-packages
...
Abandoned Package Warnings
2014-11-20 13:09:18 +01:00
Jordi Boggiano
94926218e8
CS fixes
2014-10-17 18:57:27 +01:00
Jordi Boggiano
ec0463a400
Add tests for platform packages required by root and avoid creating rules altogether instead of disabling them, refs #3320
2014-10-17 15:30:27 +01:00
alu
b7fa302b90
add ignore-platform-package-requirements for update/install commands.
2014-10-08 14:20:36 +09:00
Rafael Dohms
f9f2bbac59
Abandoned packages support
...
Added warning to the installer process.
If any installed packages are flagged, the user will get a warning at the end
of the install/update process.
2014-10-03 14:48:28 +02:00
Jordi Boggiano
d99212da52
Fix integration tests
2014-04-07 11:10:57 +02:00
Nils Adermann
5ed18d9aa2
Fail over from source to dist and vice versa when downloads fail
...
Any RuntimeException descendent will be caught and cause another
download attempt using either source or dist depending on what was
attempted first.
2014-02-24 18:40:33 +01:00
Nils Adermann
5b80144ad0
Resolve job packages after whitelist generation
2014-02-21 13:41:21 +01:00
Nils Adermann
ec12b8a675
Add tests for the changes in #2690
2014-02-21 13:15:07 +01:00
Jordi Boggiano
e126c92525
Fix exit codes, cc @tyrael
2013-11-22 16:17:02 +01:00
Phillip Look
07a7284ffc
Change dependency processing for update with whitelisted packages
...
By default dependencies of white listed packages are no longer installed automaticaly.
To Install dependencies of whitelisted packages use --with-dependencies.
- rework after review comments
- precise documentation of option
- add missing punctuation marks
2013-10-16 09:37:14 +02:00
Jordi Boggiano
38917c2047
Add parallel build to travis script
2013-09-25 10:23:48 +02:00
Nils Adermann
3960edd64e
Turn EventDispatcher into generic solution handling plugins as well
2013-08-30 12:51:41 +02:00
Jordi Boggiano
bd345c3b43
Add IO to proc executor in a few more places to get more debug info out
2013-08-10 02:44:11 +02:00
Jordi Boggiano
1dd8bffce5
CS fixes
2013-05-27 10:41:50 +02:00
Jordi Boggiano
5264d0637b
Fix regression added in 33af9eea95
, fixes #1841
2013-04-28 22:50:24 +02:00
Martin Hasoň
02f92e678f
Fixed update alias packages in dry-run mode
2013-04-11 13:20:35 +02:00
Jordi Boggiano
91f995c871
Fix tests
2013-04-09 10:34:51 +02:00
Jordi Boggiano
c32470c7df
Update docs, fix tests
2013-03-03 17:59:07 +01:00
Jordi Boggiano
4207fc3b19
Refactor require-dev handling to use one single repository and a one pass solving, fixes #719 , fixes #1185 , fixes #1330 , fixes #789 , fixes #640
2013-03-03 00:41:12 +01:00
Jordi Boggiano
7b4d1251cb
Fix test suite
2013-02-24 18:21:16 +01:00
Ronny López
e5cbf83185
Added post-autoload-dump script event.
2013-01-10 15:04:20 +01:00
Christophe Coevoet
f181dc84e2
Added tests for the suggestions
...
The test about replaced packages is failing because of #752 .
2012-09-05 20:54:00 +02:00
Jordi Boggiano
d6de4a0036
Rename Package interfaces to reduce BC issues
2012-08-24 02:29:31 +02:00
Jordi Boggiano
5818d51af0
Refactor functional tests to fit existing tests better
2012-08-14 01:16:40 +02:00
Pascal Borreli
87bac43b9e
[InstallerTest] Fixed return status was always 0
2012-08-05 05:55:54 +00:00
Jordi Boggiano
2ede0a3b54
Merge remote-tracking branch 'naderman/fix-duplicate-alias'
2012-07-01 19:07:14 +02:00
Nils Adermann
050439a0d3
Add support for defining assertions on expected lock files to integration tests
2012-07-01 18:27:16 +02:00
Jordi Boggiano
b876dcbafb
Use the config object to define the vendor dir and not the installation manager
2012-06-24 21:58:51 +02:00
Jordi Boggiano
73a865bf2a
Fix tests
2012-06-20 12:05:18 +02:00
Grégoire Pineau
f4e9dd4fb8
Fixed PSR rules
2012-06-14 12:10:01 +02:00
Jordi Boggiano
5bfbff867c
Root requires are not taken into account in locked installs, fixes #669
2012-05-28 18:57:59 +02:00
Jordi Boggiano
43150b88a2
Refactor integration tests to accept any run command
2012-05-28 00:11:18 +02:00
Jordi Boggiano
d853337616
Show output when test fails to resolve
2012-05-23 11:07:04 +02:00
Jordi Boggiano
f7d5df2764
Prevent backtracking issues with long tests
2012-05-13 22:36:32 +02:00
Jordi Boggiano
4505df29df
Add functional tests for the installer, fixes #580
2012-05-13 21:42:43 +02:00
Jordi Boggiano
7b2d3ff6a2
Refactor InstallerTest to be a bit more future proof
2012-04-29 17:29:06 +02:00
Igor Wiedler
0995933183
Do not install root package as a vendor if some dependency requires it, closes #480
...
Also add some tests for the installer.
2012-04-27 12:29:11 +02:00