This repository was archived by the owner on Sep 28, 2018. It is now read-only.
forked from RickySu/php-livereload
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrobo
More file actions
executable file
·36 lines (33 loc) · 1.32 KB
/
robo
File metadata and controls
executable file
·36 lines (33 loc) · 1.32 KB
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
#!/usr/bin/env php
<?php declare(strict_types=1);
////////////////////////////////////////////////////////////////////////////////
// ___________ __ __ _____
// \_ _____/______ __ __ _____/ |_|__|/ ____\__ __
// | __) \_ __ \ | \_/ ___\ __\ \ __< | |
// | \ | | \/ | /\ \___| | | || | \___ |
// \___ / |__| |____/ \___ >__| |__||__| / ____|
// \/ \/ \/
// -----------------------------------------------------------------------------
// https://github.com/fructify
//
// Designed and Developed by Brad Jones <brad @="bjc.id.au" />
// -----------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
require_once(__DIR__.'/vendor/autoload.php');
class RoboFile extends \Robo\Tasks
{
/**
* Runs unit tests, with code coverage report.
*/
public function test()
{
exit
(
$this->taskPHPUnit()
->arg('./tests')
->option('coverage-clover', './build/logs/clover.xml')
->run()->getExitCode()
);
}
}
exit(\Robo\Robo::run($_SERVER['argv'], RoboFile::class));