New Syntax for setting the env variable in Robofile #324
This commit is contained in:
parent
7e832b98c5
commit
bd2e3360d6
20
RoboFile.php
20
RoboFile.php
|
@ -104,7 +104,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
* @param array $opts Array of configuration options:
|
* @param array $opts Array of configuration options:
|
||||||
* - 'use-htaccess': renames and enable embedded Joomla .htaccess file
|
* - 'use-htaccess': renames and enable embedded Joomla .htaccess file
|
||||||
* - 'env': set a specific environment to get configuration from
|
* - 'env': set a specific environment to get configuration from
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function runTests($opts = ['use-htaccess' => false, 'env' => 'desktop'])
|
public function runTests($opts = ['use-htaccess' => false, 'env' => 'desktop'])
|
||||||
|
@ -124,7 +124,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
->arg('--steps')
|
->arg('--steps')
|
||||||
->arg('--debug')
|
->arg('--debug')
|
||||||
->arg('--fail-fast')
|
->arg('--fail-fast')
|
||||||
->arg('--env ' . $opts['env'])
|
->env($opts['env'])
|
||||||
->arg('tests/acceptance/install/')
|
->arg('tests/acceptance/install/')
|
||||||
->run()
|
->run()
|
||||||
->stopOnFail();
|
->stopOnFail();
|
||||||
|
@ -133,7 +133,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
->arg('--steps')
|
->arg('--steps')
|
||||||
->arg('--debug')
|
->arg('--debug')
|
||||||
->arg('--fail-fast')
|
->arg('--fail-fast')
|
||||||
->arg('--env ' . $opts['env'])
|
->env($opts['env'])
|
||||||
->arg('tests/acceptance/administrator/')
|
->arg('tests/acceptance/administrator/')
|
||||||
->run()
|
->run()
|
||||||
->stopOnFail();
|
->stopOnFail();
|
||||||
|
@ -142,7 +142,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
->arg('--steps')
|
->arg('--steps')
|
||||||
->arg('--debug')
|
->arg('--debug')
|
||||||
->arg('--fail-fast')
|
->arg('--fail-fast')
|
||||||
->arg('--env ' . $opts['env'])
|
->env($opts['env'])
|
||||||
->arg('tests/acceptance/frontend/')
|
->arg('tests/acceptance/frontend/')
|
||||||
->run()
|
->run()
|
||||||
->stopOnFail();
|
->stopOnFail();
|
||||||
|
@ -301,7 +301,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
* Creates a testing Joomla site for running the tests (use it before run:test)
|
* Creates a testing Joomla site for running the tests (use it before run:test)
|
||||||
*
|
*
|
||||||
* @param bool $use_htaccess (1/0) Rename and enable embedded Joomla .htaccess file
|
* @param bool $use_htaccess (1/0) Rename and enable embedded Joomla .htaccess file
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function createTestingSite($use_htaccess = false)
|
public function createTestingSite($use_htaccess = false)
|
||||||
|
@ -492,7 +492,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
*
|
*
|
||||||
* @param string $host Web host of the remote server.
|
* @param string $host Web host of the remote server.
|
||||||
* @param string $port Server port.
|
* @param string $port Server port.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function killSelenium($host = 'localhost', $port = '4444')
|
public function killSelenium($host = 'localhost', $port = '4444')
|
||||||
|
@ -503,7 +503,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run the phpmd tool
|
* Run the phpmd tool
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private function runPhpmd()
|
private function runPhpmd()
|
||||||
|
@ -513,7 +513,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run the phpcs tool
|
* Run the phpcs tool
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private function runPhpcs()
|
private function runPhpcs()
|
||||||
|
@ -523,7 +523,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run the phpcpd tool
|
* Run the phpcpd tool
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private function runPhpcpd()
|
private function runPhpcpd()
|
||||||
|
@ -550,7 +550,7 @@ class RoboFile extends \Robo\Tasks
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes all unit tests
|
* Executes all unit tests
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function runUnit()
|
public function runUnit()
|
||||||
|
|
Loading…
Reference in New Issue