Updated RoboFile.php
This commit is contained in:
parent
3116d76982
commit
48d88cf61b
15
RoboFile.php
15
RoboFile.php
@ -9,9 +9,20 @@ class RoboFile extends \Robo\Tasks
|
|||||||
public function testServer()
|
public function testServer()
|
||||||
{
|
{
|
||||||
$this->taskSshExec('192.168.1.17', 'root')
|
$this->taskSshExec('192.168.1.17', 'root')
|
||||||
|
|
||||||
|
# change the directory
|
||||||
->remoteDir('/var/www')
|
->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();
|
->run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user