diff --git a/RoboFile.php b/RoboFile.php index 4694aaa..9f9284a 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -9,9 +9,20 @@ class RoboFile extends \Robo\Tasks public function testServer() { $this->taskSshExec('192.168.1.17', 'root') + + # change the directory ->remoteDir('/var/www') - ->exec('echo hello') - ->exec('ls -al') + + # 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(); } }