Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate backend.inc in favor of a new site-process library #3758

Merged
merged 102 commits into from
Nov 6, 2018
Merged
Show file tree
Hide file tree
Changes from 93 commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
9603c55
Rough in usage of SiteProcess
weitzman Oct 24, 2018
525ff91
Put cd at end.
weitzman Oct 24, 2018
354009a
Rough in handling during RedispatchHook.
weitzman Oct 24, 2018
fa6c708
Set minimum php to 7.1. Inject site alias manager into redispatch hoo…
greg-1-anderson Oct 24, 2018
f557f7e
Use site-process in sql:sync.
weitzman Oct 24, 2018
61594a5
Handle ssh-wrapping with tty
greg-1-anderson Oct 25, 2018
dd9df38
Merge
greg-1-anderson Oct 25, 2018
f5ef535
sql:sync now uses site-process
weitzman Oct 25, 2018
d835cc5
If runner is a string, convert it to an alias record.
greg-1-anderson Oct 25, 2018
7431c5b
Restore php5 compatibility
greg-1-anderson Oct 25, 2018
6ea40a8
Use constraint proposed by Composer.
weitzman Oct 25, 2018
92e60e4
rsync improvements, config:pull, and options_double_dash
weitzman Oct 25, 2018
113ca9a
Use new Process in all the places
weitzman Oct 25, 2018
f748f93
Back out output formatters since its not on packagist yet
weitzman Oct 25, 2018
cd45601
Use hasRoot(), not empty($self->root()).
greg-1-anderson Oct 25, 2018
3a59d88
Some fixes.
weitzman Oct 25, 2018
d36d55c
Follow the releases.
weitzman Oct 25, 2018
c7e8349
Return an array from cex.
weitzman Oct 26, 2018
a0e4a3f
Fix double dash values.
weitzman Oct 26, 2018
6008e7b
Avoid a write to stdout.
weitzman Oct 26, 2018
900c46e
sql:sync and site:ssh fixes.
weitzman Oct 26, 2018
dcee761
Add 'fields' => '*' to BackendPathEvaluator
weitzman Oct 26, 2018
68514b6
[ci skip] Use UNISH_DB_URL environment variable in sut:si if it is de…
greg-1-anderson Oct 26, 2018
91a954e
Fix tests
weitzman Oct 26, 2018
8c5eba2
Fix up data access in BackendPathEvaluator
greg-1-anderson Oct 26, 2018
930eec3
Update assertion in rsync test
greg-1-anderson Oct 26, 2018
35d3ee8
Merge with Moshe's changes
greg-1-anderson Oct 26, 2018
d0ccd8c
[ci skip] Code style
greg-1-anderson Oct 26, 2018
b3d7f7e
Trim output when looking up info in sql:sync
greg-1-anderson Oct 26, 2018
5d2cb3d
Fix up expectations in SqlSyncTest
greg-1-anderson Oct 26, 2018
2355d46
Add real time output API and use in updatedb
weitzman Oct 26, 2018
27c8d4b
UpdatedbTest fixes
weitzman Oct 26, 2018
862bdcd
Lose extra text.
weitzman Oct 26, 2018
42c7bf7
Fix config pull test
greg-1-anderson Oct 26, 2018
38ad515
Fix handling of sql:dump path output
greg-1-anderson Oct 26, 2018
c88fdbe
Add Doxygen.
weitzman Oct 26, 2018
d9a0d28
Add doxygen and real-time to rsync.
weitzman Oct 26, 2018
3cd0ad2
Use new showRealtime() method.
weitzman Oct 26, 2018
4b816f6
Use ProcessBase from Consolidation.
weitzman Oct 26, 2018
992d78f
Populate io()
weitzman Oct 26, 2018
c2af76d
Deprecate DRUSH_COMMAND in favor of "$config->get('runtime.drush.scri…
greg-1-anderson Oct 27, 2018
78d9253
Remove a use statement.
weitzman Oct 27, 2018
f3639ac
Set an alias.
weitzman Oct 27, 2018
e3bab63
Fix CLI command args.
weitzman Oct 27, 2018
a558fc8
Do not use local path to Drush on remote calls
greg-1-anderson Oct 27, 2018
ae9480d
Merge branch 'siteProcess' of github.com:drush-ops/drush into sitePro…
greg-1-anderson Oct 27, 2018
98fe3bd
No need for setAlias() anymore
weitzman Oct 27, 2018
d900eb5
Slight dedupe to updatedb log message
weitzman Oct 27, 2018
3d04f8e
Up Process timeout.
weitzman Oct 27, 2018
e329616
Use getSelf() in sqlSync
weitzman Oct 27, 2018
fa633f5
Remove no longer needed calls to setIo()
weitzman Oct 27, 2018
53bee38
Use new realtime output callable
weitzman Oct 27, 2018
bef32e2
Inject a DrushStyle into the ProcessBase's outputStyle.
greg-1-anderson Oct 27, 2018
2d3dc8c
Use dev-master of consolidation/site-process for now.
greg-1-anderson Oct 27, 2018
089b6cd
Try dev-master of site-alias
greg-1-anderson Oct 27, 2018
257dddd
Use refactored site-process project.
greg-1-anderson Oct 27, 2018
ce57a63
Update to latest consolidation/site-process and fix some simulated te…
greg-1-anderson Oct 28, 2018
2eef719
Fix up sql:sync test exceptions
greg-1-anderson Oct 28, 2018
ee2ad19
Start converting batch system - start with updatedb
weitzman Oct 29, 2018
a6eda48
Test fixes
weitzman Oct 29, 2018
96564b6
Progress on batchTest.
weitzman Oct 29, 2018
b646582
Break out a UnitBatchOperations class.
weitzman Oct 29, 2018
49f778c
Code style (include renaming constant timeout to TIMEOUT)
greg-1-anderson Oct 29, 2018
e522775
updatedb tests
weitzman Oct 29, 2018
9fdbee0
CS
weitzman Oct 29, 2018
762a678
Use UnstructuredListData and suppress reatime stdout during batches.
weitzman Oct 29, 2018
38060cf
Seat belt for empty path during sql:sync.
weitzman Oct 30, 2018
dcd08bf
Fix update db tests for latest site-process project.
greg-1-anderson Oct 31, 2018
1a9ebeb
Rename process commands e.g. to Drush::drush for better clarity
greg-1-anderson Oct 31, 2018
07266a6
Use showRealtime()->hideStdout() in _drush_backend_batch_process
greg-1-anderson Oct 31, 2018
0ef648d
Rename siteProcessCommand to siteProcess.
greg-1-anderson Oct 31, 2018
255f219
Make sql:sync backward compatible.
weitzman Oct 31, 2018
88753cf
Fix parens and use getOutputAsJson().
weitzman Oct 31, 2018
cfb80f9
CS
weitzman Oct 31, 2018
978709c
Fix sqlsync test
weitzman Oct 31, 2018
e58a950
CS
weitzman Oct 31, 2018
0c4c65c
Stop --backend from eating the next argument
greg-1-anderson Oct 31, 2018
10f2e9c
Remove commented code and chnge var name.
weitzman Oct 31, 2018
cbb37f4
Misc updates to RedispatchHook, PreflightArgs
weitzman Oct 31, 2018
9277617
Fix test fails and re-enable testNonExistentCommand().
weitzman Oct 31, 2018
8494a9b
Move 2 tests into a new RedispatchTest class.
weitzman Nov 1, 2018
04d392e
Woops - add the file
weitzman Nov 1, 2018
127f8db
CS
weitzman Nov 1, 2018
4712ee6
Straighten out command name in redispatch hook
greg-1-anderson Nov 1, 2018
7d4d387
Merge branch 'siteProcess' of github.com:drush-ops/drush into sitePro…
greg-1-anderson Nov 1, 2018
ce1766d
Deprecate core:execute. Add missing docs reference
weitzman Nov 1, 2018
4a75fe7
Add deprecated notices, and update drush_start_browser().
weitzman Nov 1, 2018
84a464a
Fix right version of startBrowser(), and remove stray exec().
weitzman Nov 1, 2018
7ef1d9f
CS
weitzman Nov 1, 2018
403b89e
Update to site-alias ^2
greg-1-anderson Nov 2, 2018
7d5e3e3
Fix browser start method.
weitzman Nov 2, 2018
20dbeb4
Update NotifyCommands.
weitzman Nov 2, 2018
107c8f7
Update SyncViaHttpCommands.
weitzman Nov 2, 2018
89a98c5
Rename drush.script in alias records to drush-script, as it already i…
greg-1-anderson Nov 3, 2018
2aff75f
Improve error msg in Notify.
weitzman Nov 3, 2018
2172d1d
Port a config:edit process.
weitzman Nov 3, 2018
602a701
Port 2 more shell execs.
weitzman Nov 3, 2018
8be7769
Use shellArg()
weitzman Nov 3, 2018
ac61643
Fix notify error message - cant use
weitzman Nov 4, 2018
62a3b3f
Merge branch 'master' into siteProcess
weitzman Nov 6, 2018
0382c22
Test reorg (#3759)
greg-1-anderson Nov 6, 2018
1a0a8d0
Remove scenario from Travis for now.
greg-1-anderson Nov 6, 2018
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
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ workflows:
- build
- build_highest
- build_56

5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"consolidation/filter-via-dot-access-data": "^0.4",
"consolidation/output-formatters": "^3.3.1",
"consolidation/robo": "^1.1.5",
"consolidation/site-alias": "^1.1.5",
"consolidation/site-alias": "^1.1.6|^2",
"consolidation/site-process": "^0.1.13",
"grasmash/yaml-expander": "^1.1.1",
"league/container": "~2",
"psr/log": "~1.0",
Expand Down Expand Up @@ -107,7 +108,7 @@
"sami-install": "mkdir -p $HOME/bin && curl --output $HOME/bin/sami.phar http://get.sensiolabs.org/sami.phar && chmod +x $HOME/bin/sami.phar",
"scenario": "scenarios/install",
"sut": "./drush --uri=dev",
"sut:si": "./drush site:install testing --uri=dev --sites-subdir=dev --db-url=mysql://root:password@mariadb/unish_dev -v",
"sut:si": "./drush site:install testing --uri=dev --sites-subdir=dev --db-url=${UNISH_DB_URL:-mysql://root:password@mariadb}/unish_dev -v",
"unit": "phpunit --colors=always",
"functional": "phpunit --colors=always --configuration tests",
"post-update-cmd": [
Expand Down
15 changes: 10 additions & 5 deletions examples/Commands/SyncViaHttpCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,28 @@ protected function downloadFile($url, $user = false, $password = false, $destina
{
static $use_wget;
if ($use_wget === null) {
$use_wget = drush_shell_exec('which wget');
$use_wget = drush_which('wget');
}

$destination_tmp = drush_tempnam('download_file');
if ($use_wget) {
$args = ['wget', '-q', '--timeout=30'];
if ($user && $password) {
drush_shell_exec("wget -q --timeout=30 --user=%s --password=%s -O %s %s", $user, $password, $destination_tmp, $url);
$args = array_merge($args, ["--user=$user", "--password=$password", '-O', $destination_tmp, $url]);
} else {
drush_shell_exec("wget -q --timeout=30 -O %s %s", $destination_tmp, $url);
$args = array_merge($args, ['-O', $destination_tmp, $url]);
}
} else {
$args = ['curl', '-s', '-L', '--connect-timeout 30'];
if ($user && $password) {
drush_shell_exec("curl -s -L --connect-timeout 30 --user %s:%s -o %s %s", $user, $password, $destination_tmp, $url);
$args = array_merge($args, ['--user', "$user:$password", '-o', $destination_tmp, $url]);
} else {
drush_shell_exec("curl -s -L --connect-timeout 30 -o %s %s", $destination_tmp, $url);
$args = array_merge($args, ['-o', $destination_tmp, $url]);
}
}
$process = Drush::process($args);
$process->mustRun();

if (!Drush::simulate()) {
if (!drush_file_not_empty($destination_tmp) && $file = @file_get_contents($url)) {
@file_put_contents($destination_tmp, $file);
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld.script
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $this->output()->writeln(print_r($extra, true));
// there is a bootstrapped site.
//
$self = Drush::aliasManager()->getSelf();;
if (empty($self->root())) {
if (!$self->hasRoot()) {
$this->output()->writeln('No bootstrapped site.');
}
else {
Expand Down
2 changes: 1 addition & 1 deletion includes/backend.inc
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ function _drush_backend_adjust_options($site_record, $command, $command_options,
* Execute a new local or remote command in a new process.
*
* @deprecated as of Drush 9.4.0 and will be removed in Drush 10. Instead, use
* drush_invoke_process().
* Drush::drush().
*
* @param invocations
* An array of command records to execute. Each record should contain:
Expand Down
24 changes: 20 additions & 4 deletions includes/batch.inc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* implementations.
*/

use Drush\Drush;
use Drush\Log\LogLevel;

/**
Expand Down Expand Up @@ -89,6 +90,9 @@ function drush_backend_batch_process($command = 'batch-process', $args = [], $op
*
* @param int $id
* The batch ID of the batch being processed.
*
* @return bool|array
* A results array.
*/
function drush_batch_command($id) {
include_once(DRUSH_DRUPAL_CORE . '/includes/batch.inc');
Expand All @@ -104,6 +108,9 @@ function drush_batch_command($id) {
* @param command
* The command to call to process the batch.
*
* @return array
* A return array. The callers only care about the finished marker and an #abort on an operation.
*
*/
function _drush_backend_batch_process($command = 'batch-process', $args, $options) {
$result = NULL;
Expand Down Expand Up @@ -141,8 +148,11 @@ function _drush_backend_batch_process($command = 'batch-process', $args, $option
$finished = FALSE;

while (!$finished) {
$result = drush_invoke_process('@self', $command, $args);
$finished = drush_get_error() || !$result || (isset($result['context']['drush_batch_process_finished']) && $result['context']['drush_batch_process_finished'] == TRUE);
$process = Drush::drush(Drush::aliasManager()->getSelf(), $command, $args);
// Suppress printing stdout since we return a JSON array to the caller there.
$process->run($process->showRealtime()->hideStdout());
$result = $process->getOutputAsJson();
$finished = drush_get_error() || !$process->isSuccessful() || (isset($result['drush_batch_process_finished']) && $result['drush_batch_process_finished'] === TRUE);
}
}

Expand All @@ -158,6 +168,9 @@ function _drush_backend_batch_process($command = 'batch-process', $args, $option
*
* @param id
* The batch id of the batch being processed.
*
* @return bool|array
* A results array.
*/
function _drush_batch_command($id) {
$batch =& batch_get();
Expand Down Expand Up @@ -234,7 +247,7 @@ function _drush_batch_worker() {
\Drush\Drush::config()->set('runtime.php.halt-on-error', FALSE);
$message = call_user_func_array($function, array_merge($args, [&$batch_context]));
if (!empty($message)) {
drush_print(strip_tags($message), 2);
Drush::logger()->notice($message);
}
\Drush\Drush::config()->set('runtime.php.halt-on-error', $halt_on_error);

Expand Down Expand Up @@ -302,6 +315,8 @@ function _drush_batch_worker() {
* End the batch processing:
* Call the 'finished' callbacks to allow custom handling of results,
* and resolve page redirection.
*
* @return array
*/
function _drush_batch_finished() {
$results = [];
Expand All @@ -319,7 +334,7 @@ function _drush_batch_finished() {
$queue = _batch_queue($batch_set);
$operations = $queue->getAllItems();
$elapsed = $batch_set['elapsed'] / 1000;
$elapsed = drush_drupal_major_version() >=8 ? \Drupal::service('date.formatter')->formatInterval($elapsed) : format_interval($elapsed);
$elapsed = \Drupal::service('date.formatter')->formatInterval($elapsed);
call_user_func_array($batch_set['finished'], [$batch_set['success'], $batch_set['results'], $operations, $elapsed]);
$results[$id] = $batch_set['results'];
}
Expand All @@ -346,6 +361,7 @@ function _drush_batch_finished() {
$_batch = $batch;
$batch = NULL;
drush_set_option('drush_batch_process_finished', TRUE);
$results['drush_batch_process_finished'] = TRUE;

return $results;
}
Expand Down
4 changes: 3 additions & 1 deletion includes/command.inc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ use Symfony\Component\Console\Output\ConsoleOutput;
* @see drush_backend_get_result()
*
* Do not change the signature of this function! drush_invoke_process
* is one of the key Drush APIs. See http://drupal.org/node/1152908
* was one of the key Drush APIs. See http://drupal.org/node/1152908
*
* @deprecated See Drush::drush().
*/
function drush_invoke_process($site_alias_record, $command_name, $commandline_args = [], $commandline_options = [], $backend_options = TRUE) {
if ($site_alias_record instanceof AliasRecord) {
Expand Down
2 changes: 1 addition & 1 deletion includes/context.inc
Original file line number Diff line number Diff line change
Expand Up @@ -528,4 +528,4 @@ function drush_unset_option($option, $context = NULL) {
drush_unset_option($option, $context);
}
}
}
}
6 changes: 5 additions & 1 deletion includes/drupal.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ function drush_drupal_version($drupal_root = NULL) {
return $version;
}

/**
* @deprecated @see Drush::drush()
*/
function drush_drupal_cache_clear_all() {
drush_invoke_process('@self', 'cache-rebuild');
$process = Drush::drush(Drush::aliasManager()->getSelf(), 'cache-rebuild');
$process->mustrun();
}

/**
Expand Down
4 changes: 0 additions & 4 deletions includes/drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ function drush_get_global_options($brief = FALSE) {
* (e.g. unlink() and other file system functions) so that can be suppressed
* if the simulation mode is enabled.
*
* Important: Call @see drush_op_system() to execute a shell command,
* or @see drush_shell_exec() to execute a shell command and capture the
* shell output.
*
* @param $callable
* The name of the function. Any additional arguments are passed along.
* @return
Expand Down
92 changes: 17 additions & 75 deletions includes/exec.inc
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ function drush_always_exec($cmd) {
/**
* Returns executable code for invoking preferred test editor.
*
* The next line after calling this function is usually
* @code drush_shell_exec_interactive($exec, $filepath, $filepath) @endcode
*
* @see drush_config_edit()
*/
function drush_get_editor() {
Expand All @@ -118,6 +115,8 @@ function drush_get_editor() {
* Executes a command in interactive mode.
*
* @see drush_shell_exec.
*
* @deprecated See Drush::process().
*/
function drush_shell_exec_interactive($cmd) {
return _drush_shell_exec(func_get_args(), TRUE, Drush::simulate());
Expand Down Expand Up @@ -186,10 +185,13 @@ function _drush_shell_exec($args, $interactive = FALSE, $simulate = false) {
/**
* Determine whether 'which $command' can find
* a command on this system.
*
* @return bool
*/
function drush_which($command) {
exec("which $command 2>&1", $output, $result);
return ($result == 0);
$process = Drush::process(['which', $command]);
$process->run();
return $process->isSuccessful();
}

/**
Expand All @@ -209,6 +211,8 @@ function drush_which($command) {
* @return string
* A string suitable for execution with drush_shell_remote_exec().
*
* @deprecated See Drush::process and Drush::siteProcess().
*
*/
function drush_shell_proc_build(AliasRecord $site, $command = '', $cd = NULL, $interactive = FALSE) {
// Build up the command. TODO: We maybe refactor this soon.
Expand Down Expand Up @@ -248,6 +252,8 @@ function drush_shell_proc_build(AliasRecord $site, $command = '', $cd = NULL, $i
* 0 no error
* 1 general error
* 127 command not found
*
* @deprecated See Drush::process().
*/
function drush_shell_proc_open($cmd) {
if (Drush::verbose() || Drush::simulate()) {
Expand All @@ -268,6 +274,8 @@ function drush_shell_proc_open($cmd) {
*
* @returns
* NULL for 'same as local machine', 'Windows' or 'Linux'.
*
* @deprecated. See \Consolidation\SiteAlias\AliasRecord::os
*/
function drush_os($site_record = NULL) {
if (!$site_record instanceof AliasRecord) {
Expand Down Expand Up @@ -297,6 +305,8 @@ function legacy_drush_os($site_record = NULL) {
* Make an attempt to simply wrap the arg with the
* kind of quote characters it does not already contain.
* If it contains both kinds, then this function reverts to drush_escapeshellarg.
*
* @deprecated. Quoting performed by Drush::process() and friends.
*/
function drush_wrap_with_quotes($arg) {
$has_double = strpos($arg, '"') !== FALSE;
Expand Down Expand Up @@ -337,81 +347,13 @@ function _drush_shell_exec_output_set($output = FALSE) {

/**
* Returns the output of the most recent shell command as an array of lines.
*
* @deprecated Use Drush:process() and Drush::drush. Output is retried via $process->getOutput().
*/
function drush_shell_exec_output() {
return _drush_shell_exec_output_set();
}

/**
* Starts a background browser/tab for the current site or a specified URL.
*
* Uses a non-blocking proc_open call, so Drush execution will continue.
*
* @param $uri
* Optional URI or site path to open in browser. If omitted, or if a site path
* is specified, the current site home page uri will be prepended if the sites
* hostname resolves.
* @return
* TRUE if browser was opened, FALSE if browser was disabled by the user or a,
* default browser could not be found.
*/
function drush_start_browser($uri = NULL, $sleep = FALSE, $port = FALSE, $browser = true) {
if ($browser) {
// We can only open a browser if we have a DISPLAY environment variable on
// POSIX or are running Windows or OS X.
if (!Drush::simulate() && !getenv('DISPLAY') && !drush_is_windows() && !drush_is_osx()) {
drush_log(dt('No graphical display appears to be available, not starting browser.'), LogLevel::INFO);
return FALSE;
}
$host = parse_url($uri, PHP_URL_HOST);
if (!$host) {
// Build a URI for the current site, if we were passed a path.
$site = drush_get_context('DRUSH_URI');
$host = parse_url($site, PHP_URL_HOST);
$uri = $site . '/' . ltrim($uri, '/');
}
// Validate that the host part of the URL resolves, so we don't attempt to
// open the browser for http://default or similar invalid hosts.
$hosterror = (gethostbynamel($host) === FALSE);
$iperror = (ip2long($host) && gethostbyaddr($host) == $host);
if (!Drush::simulate() && ($hosterror || $iperror)) {
drush_log(dt('!host does not appear to be a resolvable hostname or IP, not starting browser. You may need to use the --uri option in your command or site alias to indicate the correct URL of this site.', ['!host' => $host]), LogLevel::WARNING);
return FALSE;
}
if ($port) {
$uri = str_replace($host, "localhost:$port", $uri);
}
if ($browser === TRUE) {
// See if we can find an OS helper to open URLs in default browser.
if (drush_shell_exec('which xdg-open')) {
$browser = 'xdg-open';
}
else if (drush_shell_exec('which open')) {
$browser = 'open';
}
else if (!drush_has_bash()) {
$browser = 'start';
}
else {
// Can't find a valid browser.
$browser = FALSE;
}
}
$prefix = '';
if ($sleep) {
$prefix = 'sleep ' . $sleep . ' && ';
}
if ($browser) {
drush_log(dt('Opening browser !browser at !uri', ['!browser' => $browser, '!uri' => $uri]));
if (!Drush::simulate()) {
$pipes = [];
proc_close(proc_open($prefix . $browser . ' ' . drush_escapeshellarg($uri) . ' 2> ' . drush_bit_bucket() . ' &', [], $pipes));
}
return TRUE;
}
}
return FALSE;
}

/**
* @} End of "defgroup commandwrappers".
Expand Down
4 changes: 2 additions & 2 deletions scenarios/isolation-phpunit4/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"php": ">=5.6.0",
"ext-dom": "*",
"consolidation/config": "^1.1.0",
"consolidation/site-alias": "^1.1.5",
"consolidation/site-alias": "^1.1.6|^2",
"psr/log": "~1.0",
"symfony/finder": "^3.4",
"symfony/var-dumper": "^3.4 || ^4.0",
Expand Down Expand Up @@ -86,7 +86,7 @@
"sami-install": "mkdir -p $HOME/bin && curl --output $HOME/bin/sami.phar http://get.sensiolabs.org/sami.phar && chmod +x $HOME/bin/sami.phar",
"scenario": "scenarios/install",
"sut": "./drush --uri=dev",
"sut:si": "./drush site:install testing --uri=dev --sites-subdir=dev --db-url=mysql://root:password@mariadb/unish_dev -v",
"sut:si": "./drush site:install testing --uri=dev --sites-subdir=dev --db-url=${UNISH_DB_URL:-mysql://root:password@mariadb}/unish_dev -v",
"unit": "phpunit --colors=always",
"functional": "phpunit --colors=always --configuration tests",
"post-update-cmd": [
Expand Down
4 changes: 2 additions & 2 deletions scenarios/isolation/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"php": ">=5.6.0",
"ext-dom": "*",
"consolidation/config": "^1.1.0",
"consolidation/site-alias": "^1.1.5",
"consolidation/site-alias": "^1.1.6|^2",
"psr/log": "~1.0",
"symfony/finder": "^3.4",
"symfony/var-dumper": "^3.4 || ^4.0",
Expand Down Expand Up @@ -86,7 +86,7 @@
"sami-install": "mkdir -p $HOME/bin && curl --output $HOME/bin/sami.phar http://get.sensiolabs.org/sami.phar && chmod +x $HOME/bin/sami.phar",
"scenario": "scenarios/install",
"sut": "./drush --uri=dev",
"sut:si": "./drush site:install testing --uri=dev --sites-subdir=dev --db-url=mysql://root:password@mariadb/unish_dev -v",
"sut:si": "./drush site:install testing --uri=dev --sites-subdir=dev --db-url=${UNISH_DB_URL:-mysql://root:password@mariadb}/unish_dev -v",
"unit": "phpunit --colors=always",
"functional": "phpunit --colors=always --configuration tests",
"post-update-cmd": [
Expand Down
Loading