Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Integração contínua com Hudson CI

2,190 views

Published on

Palestra sobre integração contínua com Hudson exemplificando com os projetos utilizados na Giran.

Palestra ministrada por Almir Mendes e Francisco Souza

  • Be the first to comment

Integração contínua com Hudson CI

  1. 1. Integração Contínua Hudson CI Almir M3nd3s Francisco Souza @m3nd3s @franciscosouza almirmendes.com franciscosouza.comhttp://www.fickr.com/photos/heartheart/4027420686/
  2. 2. Quem é Hudson?O que ele faz? http://www.fickr.com/photos/jed_fsh/4956357898/
  3. 3. Por queusamos oHudson? http://www.fickr.com/photos/abbot45/187640227/
  4. 4. Passo 1 – A instalação
  5. 5. Passo 2 – Confgurando o ambiente
  6. 6. SSH KeysPROJECT_SSHKEY=${HOME}/.ssh/${JOB_NAME}
  7. 7. http://www.fickr.com/photos/lorenjavier/3997921584/Git hooks
  8. 8. Build remoto
  9. 9. $ git push~ø~ o/
  10. 10. Rubyhttp://www.fickr.com/photos/42429527@N03/5106694318/
  11. 11. RVMRuby Version Manager
  12. 12. http://www.flickr.com/photos/afternoon_sunlight/134987402/rspec seleniumrspec-rails selenium-clientci_reporter simplecovcapybara simplecov-rcov Gems
  13. 13. Rakeflenamespace :hudson do task :spec => ["hudson:setup:rspec", db:migrate,rake:spec] namespace :setup do task :pre_ci do ENV["CI_REPORTS"] = hudson/reports/spec/ gem ci_reporter require ci/reporter/rake/rspec end task :rspec => [:pre_ci, "ci:setup:rspec"] endend
  14. 14. rvm use 1.9.2 && bundle install && rake db:migrate db:test:prepare default && rake hudson:spec
  15. 15. Pythonhttp://www.fickr.com/photos/michaelransburg/4587694386/
  16. 16. $ make build http://www.fickr.com/photos/arenamontanus/2605742044/
  17. 17. nosehttp://www.fickr.com/photos/expressmonorail/2695634651/
  18. 18. $ nosetests --nocapture --verbose --where=tests –with-coverage --cover-package=giran –with-xunit --with-gae --gae-application=. $ coverage xml –rcfle=.coveragerc$ pep8 giran | sed s/: /: [W] / > pep8.txt
  19. 19. $ nosetests --nocapture --verbose --where=tests –with-coverage --cover-package=giran –with-xunit --with-gae --gae-application=. $ coverage xml –rcfle=.coveragerc Que bonito!$ pep8 giran | sed s/: /: [W] / > pep8.txt
  20. 20. Relatórios
  21. 21. Test Result Trend
  22. 22. Code Coverage
  23. 23. Violations Report
  24. 24. Build History
  25. 25. Notifcação de build quebrado http://www.fickr.com/photos/krisnfred/320075682/
  26. 26. E o galaxy?!
  27. 27. Obrigado! Hmm... hudson-ci.org adequado!Almir M3nd3s@m3nd3salmirmendes.com Francisco Souza @franciscosouza franciscosouza.com

×