Blame view

vendor/codeception/verify/RoboFile.php 810 Bytes
2e86c939   xu   “首次提交”
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?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();
    }
}