Top Banner
33

TDC2015 Porto Alegre - Automate everything with Phing !

Jan 10, 2017

Download

Internet

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: TDC2015 Porto Alegre - Automate everything with Phing !
Page 2: TDC2015 Porto Alegre - Automate everything with Phing !
Page 3: TDC2015 Porto Alegre - Automate everything with Phing !
Page 4: TDC2015 Porto Alegre - Automate everything with Phing !
Page 5: TDC2015 Porto Alegre - Automate everything with Phing !
Page 6: TDC2015 Porto Alegre - Automate everything with Phing !
Page 7: TDC2015 Porto Alegre - Automate everything with Phing !
Page 8: TDC2015 Porto Alegre - Automate everything with Phing !
Page 9: TDC2015 Porto Alegre - Automate everything with Phing !
Page 10: TDC2015 Porto Alegre - Automate everything with Phing !
Page 11: TDC2015 Porto Alegre - Automate everything with Phing !
Page 12: TDC2015 Porto Alegre - Automate everything with Phing !
Page 13: TDC2015 Porto Alegre - Automate everything with Phing !
Page 14: TDC2015 Porto Alegre - Automate everything with Phing !
Page 15: TDC2015 Porto Alegre - Automate everything with Phing !
Page 16: TDC2015 Porto Alegre - Automate everything with Phing !
Page 17: TDC2015 Porto Alegre - Automate everything with Phing !
Page 18: TDC2015 Porto Alegre - Automate everything with Phing !
Page 19: TDC2015 Porto Alegre - Automate everything with Phing !

phing build.xml -Drepodir=http://github.com

Page 20: TDC2015 Porto Alegre - Automate everything with Phing !
Page 21: TDC2015 Porto Alegre - Automate everything with Phing !
Page 22: TDC2015 Porto Alegre - Automate everything with Phing !
Page 23: TDC2015 Porto Alegre - Automate everything with Phing !
Page 24: TDC2015 Porto Alegre - Automate everything with Phing !

EchoTask

ChmodTaskChownTask

ExecTask

CopyTask

AppendTask

MoveTaskImportTask

Page 25: TDC2015 Porto Alegre - Automate everything with Phing !
Page 26: TDC2015 Porto Alegre - Automate everything with Phing !

GitCloneTask

ZipTask

TarTask

PhpLintTask

PHPUnitTask

PHPDocumentorTask

SvnCheckoutTask

Page 27: TDC2015 Porto Alegre - Automate everything with Phing !

1.

2.

3.

Page 28: TDC2015 Porto Alegre - Automate everything with Phing !
Page 29: TDC2015 Porto Alegre - Automate everything with Phing !
Page 30: TDC2015 Porto Alegre - Automate everything with Phing !

<?php

require_once 'phing/Task.php';

class MarabesiTask{ private $message = null; private $project = null; public function setMessage($str) { $this->message = $str; }

public function init() {}

public function main() { print($this->message); } public function setProject($project) { $this->project = $project; }

}

Page 31: TDC2015 Porto Alegre - Automate everything with Phing !
Page 32: TDC2015 Porto Alegre - Automate everything with Phing !
Page 33: TDC2015 Porto Alegre - Automate everything with Phing !

<project name=”TDC2015” description=”trilhaPHP”>

<echo msg=”Thank you!”/>

</project>