Add option keep-deps to acceptance test
The dependencies will be installed only once and it saves time for development. [MQ-38]
This commit is contained in:
19
RoboFile.php
19
RoboFile.php
@ -231,12 +231,23 @@ class RoboFile extends \Robo\Tasks {
|
||||
return $this->_exec($command);
|
||||
}
|
||||
|
||||
function testAcceptance($opts=['file' => null]) {
|
||||
return $this->_exec('COMPOSE_HTTP_TIMEOUT=200 docker-compose run codeception --steps --debug -vvv -f '.($opts['file'] ? $opts['file'] : ''));
|
||||
function testAcceptance($opts=['file' => null, 'keep-deps' => false]) {
|
||||
return $this->_exec(
|
||||
'COMPOSE_HTTP_TIMEOUT=200 docker-compose run ' .
|
||||
($opts['keep-deps'] ? '-e KEEP_DEPS=1 ' : '') .
|
||||
'codeception --steps --debug -vvv ' .
|
||||
'-f ' . ($opts['file'] ? $opts['file'] : '')
|
||||
);
|
||||
}
|
||||
|
||||
function testAcceptanceMultisite($opts=['file' => null]) {
|
||||
return $this->_exec('COMPOSE_HTTP_TIMEOUT=200 docker-compose run -e MULTISITE=1 codeception --steps --debug -vvv -f '.($opts['file'] ? $opts['file'] : ''));
|
||||
function testAcceptanceMultisite($opts=['file' => null, 'keep-deps' => false]) {
|
||||
return $this->_exec(
|
||||
'COMPOSE_HTTP_TIMEOUT=200 docker-compose run ' .
|
||||
($opts['keep-deps'] ? '-e KEEP_DEPS=1 ' : '') .
|
||||
'-e MULTISITE=1 ' .
|
||||
'codeception --steps --debug -vvv' .
|
||||
'-f ' . ($opts['file'] ? $opts['file'] : '')
|
||||
);
|
||||
}
|
||||
|
||||
function deleteDocker() {
|
||||
|
Reference in New Issue
Block a user