Merge pull request #118 from Kubik-Rubik/build_codeception_windows

Fix for Windows to make sure to run the build command...
This commit is contained in:
javier gomez 2015-10-30 16:46:31 +01:00
commit 7603c82c0f
1 changed files with 4 additions and 3 deletions

View File

@ -58,7 +58,8 @@ class RoboFile extends \Robo\Tasks
$this->runSelenium();
$this->_exec('php' . $this->extension . ' vendor/bin/codecept build');
// Make sure to run the build command to generate AcceptanceTester
$this->_exec($this->isWindows() ? 'vendor\bin\codecept.bat build' : 'php vendor/bin/codecept build');
$this->taskCodecept()
->arg('--steps')
@ -112,8 +113,8 @@ class RoboFile extends \Robo\Tasks
{
$this->runSelenium();
// Make sure to Run the Build Command to Generate AcceptanceTester
$this->_exec("php vendor/bin/codecept build");
// Make sure to run the build command to generate AcceptanceTester
$this->_exec($this->isWindows() ? 'vendor\bin\codecept.bat build' : 'php vendor/bin/codecept build');
if (!$pathToTestFile)
{