Lines Matching +full:release +full:-

8  * Command Line utility to gather and check data for building a release
10 class Release extends splitbrain\phpcli\CLI class
25 $this->BASERAW = 'https://raw.githubusercontent.com/' . $repo . '/stable/';
32 $options->setHelp('This tool is used to gather and check data for building a release');
34 $options->registerCommand('new', 'Get environment for creating a new release');
35 …$options->registerOption('type', 'The type of release to build', null, join('|', self::TYPES), 'ne…
36 …$options->registerOption('date', 'The date to use for the version. Defaults to today', null, 'YYYY
37 …$options->registerOption('name', 'The codename to use for the version. Defaults to the last used o…
39 $options->registerCommand('current', 'Get environment of the current release');
44 switch ($options->getCmd()) {
46 $this->prepareNewEnvironment($options);
49 $this->prepareCurrentEnvironment($options);
52 echo $options->help();
61 $current = $this->getLocalVersion();
72 * Prepare environment for creating a new release
76 $current = $this->getUpstreamVersion();
78 // continue if we want to create a new release
80 'type' => $options->getOpt('type'),
81 'date' => $options->getOpt('date'),
82 'codename' => $options->getOpt('name'),
86 if (!$next['date']) $next['date'] = date('Y-m-d');
91 …throw new \splitbrain\phpcli\Exception('Invalid release type. Use one of ' . join(', ', self::TYPE…
98 $next['hotfix'] = $this->increaseHotfix($current['hotfix']);
103 if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $next['date'])) {
104 throw new \splitbrain\phpcli\Exception('Invalid date format, use YYYY-MM-DD');
108 … throw new \splitbrain\phpcli\Exception('Date must be equal or later than the last release');
113 'Cannot create hotfixes for release candidates, create a new RC instead'
118 … throw new \splitbrain\phpcli\Exception('Codename must be different from the last release');
161 …$versioninfo = \dokuwiki\Info::parseVersionString(trim(file_get_contents($this->BASERAW . 'VERSION…
164 $doku = file_get_contents($this->BASERAW . 'doku.php');
184 return substr($hotfix, 0, -1) . chr(ord($hotfix) + 1);
188 (new Release())->run();