ぼくの考えたさいきょうの開発フロー - PHP編

ぼくの考えたさいきょうの開発フロー - PHP編

PHPカンファレンス関西 2014

481a460d2008ec84e545cb877896d08b?s=128

YutaAdachi

June 28, 2014
Tweet

Transcript

  1. 10.
  2. 12.

    ηοτΞοϓ $ git clone {repos} $ brew bundle $ vagrant

    up IUUQTHJUIVCDPNBEBVMBSBWFMQMBUGPSN
  3. 14.
  4. 18.

    ։ൃ؀ڥͷςετ • ςετ " ࠶ߏங͢Δςετ $ vagrant destroy && vagrant

    up && rake spec " ႈ౳ੑͷνΣοΫ $ vagrant provision && vagrant provision && rake spec " ਓபνΣοΫ ਓபؾ࣭ͳΤϯδχΞʹ͓ࢼ͠ར༻ͯ͠΋Β͏
  5. 25.
  6. 26.
  7. 27.
  8. 28.
  9. 34.

    CircleCI • όʔδϣϯͷબ୒ࢶ͕๛෋ " 5.3.3, 10, 20, 25 " 5.4.4,

    5, 6, 7, 8, 9, 10, 11, 12, 13… " 5.5.0, 2, 3, 7, 8, 11 ! • 5.6ɺhiphop͸༻ҙ͞Ε͍ͯͳ͍ IUUQTDJSDMFDJDPNEPDTFOWJSPONFOUQIQ
  10. 36.

    wercker • ࣗલͰboxΛ༻ҙͰ͖Δ • Vagrant + Ansible + serverspecೖΕͨbox "

    EC2΍DigitalOceanʹεϙοτΠϯελϯε " AnsibleͷϓϨΠϒοΫ(ChefͷϨγϐ)ΛCI
  11. 39.

    scrutinizer-ci • PHPUnit & ΧόϨοδ (xdebug.so) • php-code-sniffer, php-cs-fixer •

    phpcpd, phpmd, phploc, pdepend • sensiolabs security checker (ޙ΄Ͳ) " ࣗ෼Ͱ༻ҙ͠ͳͯ͘ྑ͍!!!
  12. 47.
  13. 53.
  14. 55.
  15. 59.
  16. 62.

    CIͰ΍Γ͍ͨ͜ͱ • ςετ (PHPUnit, phpspec, behat) • ΧόϨοδ (coveralls) •

    ηΩϡϦςΟ (Sensiolabs Security Advisories Checker) • ґଘؔ܎ (VersionEye) • ϝτϦΫε (phpmd, phpcpd, pdepend) " scrutinizer-ci
  17. 63.

    CIαʔϏεͷબͼͷϙΠϯτ • ίϯςφͷੑೳͱฒྻʹ࣮ߦՄೳͳδϣϒ਺ " ։ൃεϐʔυʹӨڹ, {։ൃਓ਺} / 10 ͘Β͍ฒߦʹಈ͔͍ͨ͠ •

    ίʔυΛಈ͔͢؀ڥ࡞Γ͕େม͔Ͳ͏͔ " sudo͕ඞཁʁ sshͰϩάΠϯ͍ͨ͠ʁ • OS " RHELܥ࢖͍͔ͨͬͨΒ ʮ Vagrant + EC2 | DigitalOcean ʯ
  18. 65.

    ͓͢͢Ίͷ૊Έ߹Θͤ • CircleCI • wercker • Travis CI + •

    scrutinizer-ci ςετ ΧόϨοδ ΠϯεϖΫγϣϯ
  19. 66.
  20. 74.