Your SlideShare is downloading. ×
Damian Luszczymak - MM14NL
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Damian Luszczymak - MM14NL

104
views

Published on

Magento and Continuous Integration …

Magento and Continuous Integration
Integration, what you can do? How you can use CI Systems with Magento and how to start. I show you one possible way to introduce this in small company’s or even for your private project without much money.

Published in: Software, Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
104
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MAGENTO AND CONTINUOUS INTEGRATION
  • 2. Damian Luszczymak ● Freelancer ● Magento since 2008 ● Father of Magento Hackathon ● Firegento Member ● Search, Import / Export
  • 3. Battle Plan
  • 4. Coding Guidelines Programming style is a set of rules or guidelines used when writing the source code for a computer program. It is often claimed that following a particular programming style will help programmers to read and understand source code conforming to the style, and help to avoid introducing errors.
  • 5. ! phpcs ! ● PEAR ● PSR-1 ● PSR-2 ● Zend ● ….. https://github.com/madedotcom/phpcs-magento- rules
  • 6. Git Hook Check if php syntax is correct .git/hooks/pre-commit #!/usr/bin/php <?php // Grab all added, copied or modified files into $output array exec('git diff --cached --name-status --diff-filter=ACM', $output); foreach ($output as $file) { $fileName = trim(substr($file, 1)); // We only want to check PHP files if (pathinfo($fileName,PATHINFO_EXTENSION) == "php") { $lint_output = array(); // Check syntax with PHP lint exec("php -l " . escapeshellarg($fileName), $lint_output, $return); if ($return == 0) { continue; } else { echo implode("n", $lint_output), "n"; exit(1); } } } exit(0);
  • 7. Know your IDE
  • 8. http://magicento.com
  • 9. PHPUnit → EcomDev ● EcomDev/EcomDev_PHPUnit/ This extension was created especially for resolving this problem and promoting test driven development practices in Magento developers community. It doesn't change core files or brake your Magento instalment database, because all the system objects are replaced during the run-time with the test ones and a separate database connection is used for tests.
  • 10. CI ● Jenkins / Hudson ● Codeship.io ● Drone.io ● Cloudbees.com ● Circelci.com
  • 11. Your journey just started ● Continues Deployment ● Build Notifications ● Github vs. Bitbucket vs. Private server ● Modman ● Composer (no git submodules available :-( )
  • 12. Twitter / IRC => @daim2k5 info@icyapp.de
  • 13. Join Firegento ;-)

×