Laraland/RoboFile.php
Gregorio Chiko Putra 48d88cf61b Updated RoboFile.php
2018-08-03 15:01:23 +07:00

29 lines
646 B
PHP

<?php
/**
* This is project's console commands configuration for Robo task runner.
*
* @see http://robo.li/
*/
class RoboFile extends \Robo\Tasks
{
public function testServer()
{
$this->taskSshExec('192.168.1.17', 'root')
# change the directory
->remoteDir('/var/www')
# clone the repository
->exec('git clone git@repo.waf.or.id:gregorio/laraland.git')
# install dependencies
->exec('composer install')
# run test
->exec('vendor/bin/codecept run acceptance')
# execute above commands
->run();
}
}