Skip to content

Commit e3bcc7c

Browse files
committed
added tests to robofile
1 parent 0cabe95 commit e3bcc7c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

RoboFile.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ class Robofile extends \Robo\Tasks
44
{
55
public function release()
66
{
7+
$this->test();
8+
79
$version = file_get_contents('VERSION');
810
// ask for changes in this release
911
$changelog = $this->taskChangelog()
@@ -26,4 +28,9 @@ public function release()
2628
}
2729

2830

31+
public function test()
32+
{
33+
$res = $this->taskPHPUnit()->run();
34+
if (!$res) exit;
35+
}
2936
}

0 commit comments

Comments
 (0)