Laraland/RoboFile.php
Gregorio Chiko Putra 2fd196c694 Updated RoboFile.php
2018-08-03 16:25:20 +07:00

30 lines
679 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/laraland')
# update the repository
->exec('git pull origin develop')
->exec('git checkout origin/develop')
# install dependencies
->exec('composer install')
# run test
->exec('vendor/bin/codecept run acceptance')
# execute above commands
->run();
}
}