forked from Codeception/phpunit-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRoboFile.php
27 lines (24 loc) · 831 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
<?php
/**
* This is project's console commands configuration for Robo task runner.
*
* @see http://robo.li/
*/
class RoboFile extends \Robo\Tasks
{
// define public methods as commands
public function prepare()
{
$config = json_decode(file_get_contents(__DIR__ . '/composer.json'), true);
$config['name'] = 'codeception/phpunit-wrapper-test';
$config['require-dev']['codeception/codeception'] = getenv('CODECEPTION_VERSION');
$config['replace'] = ['codeception/phpunit-wrapper' => '*'];
file_put_contents(__DIR__ . '/composer.json', json_encode($config));
}
public function test($params)
{
return $this->taskExec(__DIR__ . '/vendor/bin/codecept run ' . $params)
->dir(__DIR__ .'/vendor/codeception/codeception')
->run();
}
}