Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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

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

PHPカンファレンス関西 2014

Yuta Adachi

June 28, 2014
Tweet

More Decks by Yuta Adachi

Other Decks in Technology

Transcript

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

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

    up && rake spec " ႈ౳ੑͷνΣοΫ $ vagrant provision && vagrant provision && rake spec " ਓபνΣοΫ ਓபؾ࣭ͳΤϯδχΞʹ͓ࢼ͠ར༻ͯ͠΋Β͏
  3. 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
  4. wercker • ࣗલͰboxΛ༻ҙͰ͖Δ • Vagrant + Ansible + serverspecೖΕͨbox "

    EC2΍DigitalOceanʹεϙοτΠϯελϯε " AnsibleͷϓϨΠϒοΫ(ChefͷϨγϐ)ΛCI
  5. scrutinizer-ci • PHPUnit & ΧόϨοδ (xdebug.so) • php-code-sniffer, php-cs-fixer •

    phpcpd, phpmd, phploc, pdepend • sensiolabs security checker (ޙ΄Ͳ) " ࣗ෼Ͱ༻ҙ͠ͳͯ͘ྑ͍!!!
  6. CIͰ΍Γ͍ͨ͜ͱ • ςετ (PHPUnit, phpspec, behat) • ΧόϨοδ (coveralls) •

    ηΩϡϦςΟ (Sensiolabs Security Advisories Checker) • ґଘؔ܎ (VersionEye) • ϝτϦΫε (phpmd, phpcpd, pdepend) " scrutinizer-ci
  7. CIαʔϏεͷબͼͷϙΠϯτ • ίϯςφͷੑೳͱฒྻʹ࣮ߦՄೳͳδϣϒ਺ " ։ൃεϐʔυʹӨڹ, {։ൃਓ਺} / 10 ͘Β͍ฒߦʹಈ͔͍ͨ͠ •

    ίʔυΛಈ͔͢؀ڥ࡞Γ͕େม͔Ͳ͏͔ " sudo͕ඞཁʁ sshͰϩάΠϯ͍ͨ͠ʁ • OS " RHELܥ࢖͍͔ͨͬͨΒ ʮ Vagrant + EC2 | DigitalOcean ʯ
  8. ͓͢͢Ίͷ૊Έ߹Θͤ • CircleCI • wercker • Travis CI + •

    scrutinizer-ci ςετ ΧόϨοδ ΠϯεϖΫγϣϯ