forked from mpociot/slack-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RoboFile.php
41 lines (37 loc) · 943 Bytes
/
RoboFile.php
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
33
34
35
36
37
38
39
40
41
<?php
class RoboFile extends \Robo\Tasks
{
public function test()
{
$this->taskPHPUnit()
->configFile('phpunit.xml.dist')
->run();
}
public function docsGenerate()
{
$this->taskExec('vendor/bin/apigen')
->arg('generate')
->option('source', 'src')
->option('destination', 'api')
->option('template-theme', 'bootstrap')
->run();
}
public function docsServe()
{
$this->taskServer(8000)
->dir('api')
->run();
}
public function docsPublish($message = 'Regenerate docs')
{
$this->taskGitStack()
->stopOnFail()
->checkout('gh-pages api/**')
->checkout('gh-pages')
->add('api/**')
->commit($message)
->push('origin', 'gh-pages')
->checkout('master')
->run();
}
}