-
Notifications
You must be signed in to change notification settings - Fork 1
/
RoboFile.php
36 lines (32 loc) · 897 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
<?php
/**
* This is project's console commands configuration for Robo task runner.
*
* @see http://robo.li/
*/
class RoboFile extends \Robo\Tasks {
/**
* Run Behat test.
*
* @param string $config
* @param null[] $options
*
* @return \Robo\Result
*/
public function behat($config = './behat/behat.yml', $options = ['tags' => NULL]) {
$behat_task = $this->taskExec('./vendor/bin/behat')
->option('config', $config);
if ($options['tags']) {
$behat_task->option('tags', $options['tags']);
}
return $behat_task->run();
}
/**
* Force use account mail of test for new installation.
*
* @hook init install
*/
public function initInstallCommand(\Symfony\Component\Console\Input\InputInterface $input, \Consolidation\AnnotatedCommand\AnnotationData $annotationData) {
$input->setOption('mail', '[email protected]');
}
}