stopOnFail(); $result = $this->taskExec('git') ->arg('describe') ->run(); $result->provideOutputdata(); $tmpDir = $this->_tmpDir(); $filename = 'alltube-' . trim($result->getOutputData()) . '.zip'; $this->taskFilesystemStack() ->remove($filename) ->run(); $this->taskGitStack() ->cloneRepo(__DIR__, $tmpDir) ->run(); $this->taskComposerInstall() ->dir($tmpDir) ->optimizeAutoloader() ->noDev() ->run(); $this->taskPack($filename) ->addDir('alltube', $tmpDir) ->run(); } }