Files
piratepoet/RoboFile.php
2015-07-17 23:32:35 +02:00

29 lines
572 B
PHP

<?php
class RoboFile extends \Robo\Tasks {
function update() {
$this->_exec('./composer.phar update');
}
function testUnit() {
$this->_exec('vendor/bin/codecept run unit');
}
function testAcceptance() {
$this
->taskExec('phantomjs --webdriver=4444')
->background()
->run();
sleep(2);
$this->_exec('vendor/bin/codecept run acceptance');
}
function testAll() {
$this
->taskExec('phantomjs --webdriver=4444')
->background()
->run();
sleep(2);
$this->_exec('vendor/bin/codecept run');
}
}