You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
841 B

<?php
/**
* This is project's console commands configuration for Robo task runner.
*
* @see http://robo.li/
*/
class RoboFile extends \Robo\Tasks
{
/**
* Publishes new Verify release
* @param null $newVer
*/
public function release($newVer = null)
{
if ($newVer) {
$this->say("version updated to $newVer");
$this->taskWriteToFile(__DIR__.'/VERSION')
->line($newVer)
->run();
}
$version = trim(file_get_contents(__DIR__.'/VERSION'));
$this->taskGitStack()
->tag($version)
->push('origin','master --tags')
->run();
$this->taskGitHubRelease($version)
->uri('Codeception/Verify')
->askForChanges()
->run();
}
}