Files
Laraland/RoboFile.php
T

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();
}
}