Added a new configuration variable, PHPCI_BUILD_ROOT_DI.

This variable allows to change where the build happens.
It defaults to PHPCI_DIR.'PHPCI/build/'.

Moved build path calculate and build removal into the Build class.

Also remove the build directory when deleting the build.

Close #834
This commit is contained in:
Adirelle 2015-02-27 10:51:18 +01:00 committed by Tobias van Beek
commit ccdc73326d
5 changed files with 37 additions and 26 deletions

View file

@ -112,6 +112,7 @@ class BuildService
*/
public function deleteBuild(Build $build)
{
$build->removeBuildDirectory();
return $this->buildStore->delete($build);
}
}