Fixed caching issue with folder not deleted before new clone

This commit is contained in:
Yves Hoppe 2015-11-02 12:11:36 +01:00
parent 7c13b8f488
commit 73230a4543
1 changed files with 5 additions and 0 deletions

View File

@ -274,6 +274,11 @@ class RoboFile extends \Robo\Tasks
// Caching cloned installations locally
if (!is_dir('tests/cache') || (time() - filemtime('tests/cache') > 60 * 60 * 24))
{
if (file_exists('tests/cache'))
{
$this->taskDeleteDir('tests/cache')->run();
}
$this->_exec($this->buildGitCloneCommand());
}