stopOnFail(); /** @var Exec $gitTask */ $gitTask = $this->taskExec('git'); $result = $gitTask ->arg('describe') ->run(); $result->provideOutputdata(); $tmpDir = $this->_tmpDir(); $filename = 'alltube-' . trim((string)$result->getOutputData()) . '.zip'; /** @var FilesystemStack $rmTask */ $rmTask = $this->taskFilesystemStack(); $rmTask->remove($filename) ->run(); /** @var GitStack $gitTask */ $gitTask = $this->taskGitStack(); $gitTask->cloneRepo(__DIR__ . '/../../../../', $tmpDir) ->run(); /** @var Install $composerTask */ $composerTask = $this->taskComposerInstall(); $composerTask->dir($tmpDir) ->optimizeAutoloader() ->noDev() ->run(); /** @var Pack $packTask */ $packTask = $this->taskPack($filename); $packTask->addDir('alltube', $tmpDir) ->run(); } }