CK 10 - Automate all the things 2.0
-
Upload
matheus-marabesi -
Category
Internet
-
view
433 -
download
2
Transcript of CK 10 - Automate all the things 2.0
![Page 1: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/1.jpg)
![Page 2: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/2.jpg)
github.com/marabesi
twitter.com/MatheusMarabesi
![Page 3: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/3.jpg)
![Page 4: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/4.jpg)
![Page 5: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/5.jpg)
http://vmob.me/DE1Q16THT
HELP
US
![Page 6: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/6.jpg)
Why should I use Phing ?
![Page 7: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/7.jpg)
![Page 8: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/8.jpg)
![Page 9: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/9.jpg)
![Page 10: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/10.jpg)
Build tool ?
![Page 11: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/11.jpg)
“Build tools are programs that automate the creation of executable applications from source code. Building incorporates compiling, linking and packaging the code into a usable or executable form. In small projects, developers will often manually invoke the build process.”
https://www.techopedia.com/definition/16359/build-tool
![Page 12: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/12.jpg)
“Build tools are programs that automate the creation of executable applications from source code.”
https://www.techopedia.com/definition/16359/build-tool
![Page 13: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/13.jpg)
![Page 14: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/14.jpg)
Why should I automate?
![Page 15: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/15.jpg)
![Page 16: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/16.jpg)
![Page 17: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/17.jpg)
![Page 18: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/18.jpg)
![Page 19: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/19.jpg)
<?xml
![Page 20: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/20.jpg)
![Page 21: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/21.jpg)
![Page 22: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/22.jpg)
PROPERTIES
![Page 23: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/23.jpg)
![Page 24: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/24.jpg)
phing build.xml -Drepodir=http://github.com
![Page 25: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/25.jpg)
![Page 26: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/26.jpg)
TARGETS
![Page 27: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/27.jpg)
![Page 28: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/28.jpg)
![Page 29: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/29.jpg)
CORE TASKS
EchoTask
ChmodTaskChownTask
ExecTask
CopyTask
AppendTask
MoveTaskImportTask
![Page 30: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/30.jpg)
![Page 31: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/31.jpg)
OPTIONAL TASKS
GitCloneTask
ZipTask
TarTask
PhpLintTask
PHPUnitTask
PHPDocumentorTask
SvnCheckoutTask
![Page 32: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/32.jpg)
1.
2.
3.
![Page 33: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/33.jpg)
Extending Phing ?
![Page 34: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/34.jpg)
![Page 35: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/35.jpg)
<?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 36: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/36.jpg)
![Page 37: CK 10 - Automate all the things 2.0](https://reader034.fdocuments.in/reader034/viewer/2022042610/589d2ff71a28abeb478b779d/html5/thumbnails/37.jpg)