Files
piratepoet/RoboFile.php
2015-07-20 18:02:40 +02:00

33 lines
703 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');
}
function watch() {
$this->_exec('./node_modules/stylus/bin/stylus -u nib -w assets/css/src/admin.styl -o assets/css/');
}
}