Laraland/RoboFile.php
2018-08-06 09:44:48 +07:00

30 lines
693 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 --env staging')
# execute above commands
->run();
}
}