Tobias Kappé
07c9264884
Read standard output and standard error of child process using stream_select.
...
If a process filled up the buffer of the standard error pipe before closing the
standard output pipe, it would hang. As a result, the call to
stream_get_contents for the standard output pipe would not return, as the
standard error pipe needs to be read from in order for the process to continue.
This change uses stream_select to read from both pipes whenever data becomes
available.
2016-08-27 14:15:19 +02:00
Dan Cryer
21ba39e6ff
Fixes
2016-04-27 15:27:27 +01:00
Dan Cryer
21d5f4954f
Adding a debug mode to the worker so you can see what commands are being run.
2016-04-27 14:56:52 +01:00
Adirelle
f25b1d25dc
Let CommandExecutor::findBinary throw an exception when the binary is missing.
...
Close #910
2015-04-22 12:19:05 +02:00
Dan Cryer
86b9c05f98
Fixing PHPCS errors.
2015-02-26 08:45:42 +00:00
nonlux
893deada33
Set the CommandExecutor buildPath property when a build is created.
...
Closes #556
2015-02-23 14:42:04 +00:00
Dan Cryer
9de19d6bbb
Merging latest master
2014-12-08 14:18:57 +00:00
Dan Cryer
7f9a09fa29
Adding Docblocks throughout the project and lowering the missing docblock limit in phpci.yml to zero.
...
Closes #692
2014-12-08 14:12:01 +00:00
Dan Cryer
5dd42da9a0
Builder, build plugins
2014-12-04 15:48:52 +00:00
Dan Cryer
46ed8daac5
Removing the 'error trying to execute' message and just displaying the errors themselves.
2014-07-31 12:23:44 +01:00
Dan Cryer
64fc4f0e16
Only display 'Error trying to execute' message if a command's status is not successful. See #533
2014-07-31 12:18:23 +01:00
Dan Cryer
99dfdcdfb2
Adding a getLastError() method as a stderr equivalent of getLastOutput() to commandexecutor.
2014-07-30 14:58:07 +01:00
Dan Cryer
69ea614d78
Fixing failed test.
2014-07-30 14:03:55 +01:00
Dan Cryer
f117b5b6b6
Fixed a small logic bug introduced in the last commit
2014-07-30 13:57:29 +01:00
Dan Cryer
b84ea1c0b5
Updating the CommandExecutor::executeCommand() method to properly catch stderr output from commands.
...
Fixes #456
2014-07-30 13:34:45 +01:00
Dan Cryer
64afb043d1
Adding the ability to use a project's composer bin directory even if it isn't defined in the composer.json (/vendor/bin)
2014-07-29 16:23:48 +01:00
Dan Cryer
d1ae05b006
PHPCS Cleanup
2014-07-11 14:07:27 +01:00
Stéphane HULARD
8e23dee03a
Allow the binary finder to use the project's composer.json file
...
- Load JSON file and get bin-dir value: https://getcomposer.org/doc/articles/vendor-binaries.md
- Update finder behaviour to avoid code duplication
Signed-off-by: Stéphane HULARD <s.hulard@chstudio.fr>
2014-07-04 11:02:27 +02:00
Dan Cryer
5ba629e874
Adding / correcting the file docblock throughout the project
2014-05-12 17:26:17 +01:00
steve.brazier
614af204f5
Add missing newline to end of BaseCommandExecutor.
2014-05-12 09:07:27 +01:00
Corpsee
f6d1896096
Pull request review fixes
2014-05-11 22:38:33 +07:00
Corpsee
d32c43713d
Separeted CommandExecutor for different OS
2014-05-09 19:09:27 +07:00