Jordi Boggiano
bfa01285c2
Merge branch '1.6'
2018-04-12 10:25:03 +02:00
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
2018-04-12 10:24:56 +02:00
Gabriel Caruso
3d262bd637
Fixes from PHPStan level 0
...
More fixes from PHPStan level 0
2018-01-14 11:44:15 -02:00
Gabriel Caruso
afc9a7643e
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
2017-11-30 13:44:43 -02:00
Gabriel Caruso
a4b220273e
Refactoring Tests ( #6849 )
2017-11-30 15:58:10 +01:00
Alexander M. Turek
20050dd984
Remove console formatting as well.
2017-04-19 17:24:47 +02:00
Alexander M. Turek
401ef69ae3
Remove ANSI control characters from suggested packages output.
2017-04-11 15:20:40 +02:00
Jordi Boggiano
122e422682
CS fixes
2017-03-08 15:16:44 +01:00
Jordi Boggiano
59596ff012
Make sure we do not overwrite binaries but only re-create missing ones, refs #5127
2016-07-02 16:35:09 +01:00
Jeremy Benoist
e9fc0e6548
Re-install binaries on update/install
...
Binaries are re-installed after an update/install (ie: removed and then installed)
2016-03-28 23:15:13 +02:00
Helmut Hummel
b1ec99faed
Extract binary installation and removal to own class
...
The functionality to install binaries might be useful
for other installers.
Create API for that by extracting this functionality from
the LibraryInstaller class.
2016-03-23 21:39:58 +01:00
Haralan Dobrev
cc389d6c1a
List project suggestions in create-project command
...
Resolves https://github.com/composer/composer/issues/2752
2016-03-05 14:22:12 +02:00
Rob Bast
a8995b2572
use dirsep so phpunit on windows doesnt fail
2016-01-26 11:23:08 +01:00
Rob Bast
adf3b956d0
try to use unique test directories
...
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
2016-01-26 09:41:21 +01:00
Jordi Boggiano
3efed220a6
Clean up event dispatching code and make package events extend installer events
2015-02-23 15:34:49 +00:00
François Pluchino
1067ce4f96
Add installer events
2014-07-29 15:25:16 +02:00
Jordi Boggiano
8398c9f2ab
Fix target-dir update checks, fixes #2395
2013-11-04 13:36:30 +01:00
Jordi Boggiano
807600b255
Fix edge case where one adds a target-dir on a package that didnt have one before, refs #2279
2013-09-25 21:11:18 +02:00
Jordi Boggiano
a813867065
Merge remote-tracking branch 'chx/913'
2013-09-25 20:58:13 +02:00
Jordi Boggiano
38917c2047
Add parallel build to travis script
2013-09-25 10:23:48 +02:00
Karoly Negyesi
e32e4ad490
change the test to test for a target dir change
2013-09-22 19:42:05 +02:00
Karoly Negyesi
24c9ef72d6
make LibraryInstallerTest a little more strict
2013-09-20 06:04:15 +02:00
Karoly Negyesi
c6ec739766
allow injecting a mock filesystem into LibraryInstaller and fix LibraryInstallerTest
2013-09-20 06:02:36 +02:00
Nils Adermann
3e41977be7
Plugin tests are no longer strictly installer tests
2013-08-30 12:51:40 +02:00
Nils Adermann
eb966d347f
Implement a plugin manager and interface, update installer plugin tests
2013-08-30 12:51:40 +02:00
Nils Adermann
01a08a2ff3
As preparation for composer plugins, rename custom installers to plugins
2013-08-30 12:51:40 +02:00
Martin Hasoň
b1c4eed57f
Throw exception if the local repository does not contain a package to uninstall
2013-08-07 10:50:12 +02:00
Jordi Boggiano
c32470c7df
Update docs, fix tests
2013-03-03 17:59:07 +01:00
Jordi Boggiano
8d55b9cced
Merge remote-tracking branch 'ronnylt/script-event-post-dump-autoload'
...
Conflicts:
tests/Composer/Test/Autoload/AutoloadGeneratorTest.php
2013-02-22 18:42:29 +01:00
Filippo Tessarotto
470adc47df
Switched rand() to mt_rand()
2013-01-30 10:44:07 +01:00
Ronny López
e5cbf83185
Added post-autoload-dump script event.
2013-01-10 15:04:20 +01:00
Jordi Boggiano
a8f74a0983
Allow notification from locked installs, fixes #1368 , fixes #1372 , fixes #1369
2012-11-29 09:24:28 +01:00
Jordi Boggiano
d6de4a0036
Rename Package interfaces to reduce BC issues
2012-08-24 02:29:31 +02:00
Jordi Boggiano
a2171e2ed1
Expose LibraryInstallerTest properties to child classes
2012-08-16 11:22:30 +02:00
Jordi Boggiano
c65af3e3a1
Add ValidatingArrayLoader and more validation for the validate command
2012-07-18 17:20:56 +02:00
Alexey Prilipko
ac3cebc633
Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files
...
Add PearInstaller
Change PEAR packages type from 'library' to 'pear-library' and dist type from 'pear' to 'file'
Remove PearDownloader
Refactor Channel Installer
2012-07-03 19:18:58 +11:00
Nils Adermann
d84273ee34
Merge pull request #833 from Seldaek/installmgr_cleanup
...
Use the config object to define the vendor dir and not the installation manager
2012-07-01 10:04:09 -07: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
a4c829749e
Expose the whole composer context to the custom installers, fixes #672
2012-06-24 20:11:17 +02:00
Grégoire Pineau
f4e9dd4fb8
Fixed PSR rules
2012-06-14 12:10:01 +02:00
Andrew Short
e0a1d9ef58
Support multiple installers in a composer-installer package.
2012-05-25 18:28:53 +10:00
Jordi Boggiano
ef300ca56a
Fix tests
2012-04-18 01:06:23 +02:00
Jordi Boggiano
d1f66073ca
Update depends command
2012-04-14 23:53:12 +02:00
Jordi Boggiano
89e095b4b5
Handle --dev installs/updates
2012-04-14 23:38:10 +02:00
Jordi Boggiano
ab55490254
Merge remote-tracking branch 'hason/metapackage'
2012-03-24 18:14:05 +01:00
Martin Hasoň
c85ae48e5d
Vendor dir can be outside the current working directory
2012-03-12 12:12:44 +01:00
Jordi Boggiano
ada9c20db1
Update Git/Hg downloaders tests, making sure they never use a live filesystem instance
2012-03-08 00:11:52 +01:00
Wookieb
f93135b3bd
Cosmetic tests fix - remove test directories
2012-02-24 12:28:41 +01:00
Martin Hasoň
528a058e40
Added installer for metapackages
2012-02-24 12:24:16 +01:00
Wookieb
8d3b40ff8e
Tests should remove created directories after testing process
2012-02-24 10:40:47 +01:00
Jordi Boggiano
3fe87b1e35
Force dev packages to be installed from source
2012-02-19 16:57:30 +01:00
Wookieb
2467456d3f
Fix installer that create vendor and bin directory even if --dry-run parameter provided
...
* Move directories creation from constructor to "install" and "update" method
* Tests for LibraryInstaller
2012-02-16 22:43:10 +01:00
Jordi Boggiano
5da021ffa7
Moved Filesystem to base Util namespace
2012-02-09 18:45:28 +01:00
Jordi Boggiano
2262a3f864
Fix test
2012-02-05 21:13:16 +01:00
digitalkaoz
4d0fae688e
removed replace, reinstalling as install
2012-01-23 15:43:42 +01:00
digitalkaoz
30e89a2402
fixed broken packages on filesystem
2012-01-23 15:19:05 +01:00
Jordi Boggiano
e4dbee2648
Fix tests
2012-01-17 23:13:35 +01:00
Jordi Boggiano
94a8e8809c
Fix travis builds
2011-12-21 16:46:23 +01:00
Jordi Boggiano
116b17dfc0
Fix test suite for OSX
2011-12-21 16:43:38 +01:00
Jordi Boggiano
aefd2062c1
Update tests
2011-12-15 15:14:33 +01:00
Jordi Boggiano
f6b9488bf0
Move root package handling to a dedicated loader and make ArrayLoader more strict
2011-12-13 01:05:29 +01:00
Jordi Boggiano
aa94918d50
Add binaries support in composer
2011-12-03 15:39:06 +01:00
Jordi Boggiano
14e9d4d84b
Fix test
2011-11-21 18:19:32 +01:00
Jordi Boggiano
f5b7e968b2
Minor adjustments to merged PR
2011-11-20 22:03:11 +01:00
Jordi Boggiano
5b87a02767
Merge remote-tracking branch 'prodigitalson/master'
2011-11-20 21:43:31 +01:00
Jordi Boggiano
8e6f8ae57e
Add prettyVersion to packages, fixes #76
2011-11-20 15:06:12 +01:00
Ant Cunningham
e0400773f7
Adding support for configurable vendor path in composer.json.
2011-11-18 13:31:50 -05:00
Jordi Boggiano
b7f6cf69ab
Add tests and fixes some issues
2011-11-05 23:54:05 +01:00
Jordi Boggiano
4904e76185
Install every package in its own directory, fixes #73
2011-10-30 19:10:37 +01:00
Jordi Boggiano
c33fc80d23
Add supports() to the InstallerInterface
2011-10-23 19:40:24 +02:00
Jordi Boggiano
8a571c05db
Fix issues in new autoloader code
2011-10-23 19:40:22 +02:00
Jordi Boggiano
753caf2b55
Fix tests on windows
2011-09-25 23:14:12 +02:00
everzet
20318f77a0
Refactored FilesystemRegistry to FilesystemRepository
2011-09-25 20:59:10 +03:00
everzet
2fc0699492
Moved operations evaluation into new InstallationManager class
2011-09-25 19:31:51 +03:00
everzet
6133108710
Refactored LibraryInstaller to use WritableRepository instead of Registry
2011-09-25 15:44:41 +03:00
everzet
10bd9c3729
Fixed FilesystemRegistry test name
2011-09-24 02:35:13 +03:00
everzet
0a2f4e7e32
Installer now provides full download path to the downloader
2011-09-24 01:30:17 +03:00
everzet
45cab9fe8c
Installers FilesystemRegistry implemented
2011-09-24 00:24:19 +03:00
everzet
067007656b
LibraryInstaller refactored and tested
2011-09-24 00:23:16 +03:00