Fixed 'cd' command for windows

This commit is contained in:
Dmitry Khomutov 2014-03-13 00:37:57 +07:00
commit d0f6d295a1
6 changed files with 28 additions and 5 deletions

View file

@ -70,6 +70,9 @@ class Codeception implements \PHPCI\Plugin
}
$cmd = 'cd "%s" && ' . $codecept . ' run -c "%s"';
if (IS_WIN) {
$cmd = 'cd /d "%s" && ' . $codecept . ' run -c "%s"';
}
$success = $this->phpci->executeCommand($cmd, $this->phpci->buildPath, $this->phpci->buildPath . $configPath);
return $success;