Few fixes for windows

This commit is contained in:
Dmitry Khomutov 2014-05-09 14:57:22 +07:00
commit 3ea6b720b1
3 changed files with 13 additions and 1 deletions

View file

@ -38,6 +38,9 @@ class CleanBuild implements \PHPCI\Plugin
public function execute()
{
$cmd = 'rm -Rf "%s"';
if (IS_WIN) {
$cmd = 'rmdir /S /Q "%s"';
}
$this->phpci->executeCommand($cmd, $this->phpci->buildPath . 'composer.phar');
$this->phpci->executeCommand($cmd, $this->phpci->buildPath . 'composer.lock');