From 48d88cf61bf565429523eb2830cbbd34e6e25a2b Mon Sep 17 00:00:00 2001 From: Gregorio Chiko Putra Date: Fri, 3 Aug 2018 15:01:23 +0700 Subject: [PATCH] Updated RoboFile.php --- RoboFile.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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(); } }