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

ペパボを支える大統一CI基盤と人々

 ペパボを支える大統一CI基盤と人々

http://plaidtech.connpass.com/event/41401/

2016/10/27 【ペパボ×プレイド】Tech Meetup 〜自動テスト・CI編〜

B70c88a9a107334fa64a69e010af3cc6?s=128

Yoshihide Taniguchi

October 27, 2016
Tweet

Transcript

  1. d1FQBCPY$*d :PTIJIJEF5"/*(6$)* ϓϨΠυYϖύϘ߹ಉษڧձ ϖύϘΛࢧ͑Δ େ౷Ұ$*؀ڥͱਓʑ

  2. ࠓ೔࿩͢͜ͱ w$*؀ڥͷҰྫͱͯ͠ϖύϘͷ$*؀ڥΛ঺հ wมભ wࠓͷશମ૾ wݱ৔ͷ੠ w՝୊

  3. ࠓ೔࿩͞ͳ͍͜ͱ w$*ͱ͸Կ͔ɺ$*ͷྺ࢙ wେ౷Ұ$*ج൫ͷ࡞Γํ wϞόΠϧΞϓϦͷ$*

  4. ☺ ࠓޙ$*Λߟ͑Δࡍͷ ҰॿͱͳΕ͹خ͍͠Ͱ͢

  5. @ravelll :PTIJIJEF5"/*(6$)*

  6. wΞϓϦέʔγϣϯͷػೳ։ൃ wΞϓϦέʔγϣϯج൫ͷอक w։ൃج൫ͷվળ &$ج൫νʔϜ Χϥʔϛʔγϣοϓ

  7. 8&`3&)*3*/(

  8. 1FQBCP ʷ $*

  9. d

  10. l֤Ґɺ͍͍͔Μ͡ʹz

  11. ֤Ґ͍͍͔Μ͡ʹ΍Δ࣌୅ ֤νʔϜ͕ࣗ༝ʹ$*؀ڥΛબ୒ɾಋೖ͍ͯͨ͠ w+FOLJOT XFSDLFS 5SBWJT$* 4IJQQBCMF ʜ w஌ݟ͕νʔϜ͝ͱʹಠཱͯ͠஝ੵ ⾣ࠔͬͯΔਓ͕͍ͯ΋ॿ͚ΒΕͳ͍ ⾣ଟ͘ͷਓ͕஍ཕΛ౿Ή

  12. d

  13. l֤Ґɺͳ͔Α͘z

  14. None
  15. [ ] 0%

  16. [## ] 40%

  17. [#### ] 90%

  18. None
  19. ֤Ґͳ͔Α͘΍Δ࣌୅ શϦϙδτϦͰ౷Ұతʹ࢖͑Δ$*ج൫ͷొ৔ ‣ΈΜͳ͕࢖͏͔ΒࠔͬͨΒ୭ʹͰ΋ॿ͚ΛٻΊΒΕΔ ‣ΈΜͳ͕࢖͏͔ΒϞϦϞϦ஌ݟ͕ཷ·Δ ‣ҟಈ࣌ͷֶशίετ͕গͳ͍

  20. $*ج൫ͷߏ੒

  21. drone.io

  22. IUUQXXXTMJEFTIBSFOFUVE[VSBESPOFJP

  23. ESPOFJP w(P੡ɺ044൛ͱ)PTUJOH൛͕͋Δ w ϖύϘͰ͸044൛ΛGPSLͯ͠࢖ͬͯΔʢWFSʣ w:BNMʢESPOFZNMʣʹ$*ͷλεΫΛهड़ɺϦϙδτϦͰ؅ཧ w ςετͷϙʔλϏϦςΟˢˢ w%PDLFSίϯςφΛϫʔΧʔͱͯ͠δϣϒΛ࣮ߦ w ֤νʔϜ͕Ϗϧυͨ͠$*༻%PDLFSΠϝʔδΛ


    ϓϥΠϕʔτϨδετϦܦ༝Ͱ࢖ͬͯΔʢޙͰઆ໌ʣ
  24. ESPOFZNM --- build: image: docker.pepabo.com/colorme/colorme-docker:0.0.1 environment: - ENV=test commands: -

    ./vendor/bin/phpunit - bundle install --without=production --path vendor/bundle - bin/rake spec notify: slack: webhook_url: https://hooks.slack.com/services/ABC123DEFG/987ZYX/sBdiCpG7hZx username: drone channel: "#colorme" when: success: true failure: true
  25. ESPOFZNM --- build: image: docker.pepabo.com/colorme/colorme-docker:0.0.1 environment: - ENV=test commands: -

    ./vendor/bin/phpunit - bundle install --without=production --path vendor/bundle - bin/rake spec notify: slack: webhook_url: https://hooks.slack.com/services/ABC123DEFG/987ZYX/sBdiCpG7hZx username: drone channel: "#colorme" when: success: true failure: true $*ʹ࢖͏%PDLFSJNBHFΛࢦఆ
  26. ESPOFZNM --- build: image: docker.pepabo.com/colorme/colorme-docker:0.0.1 environment: - ENV=test commands: -

    ./vendor/bin/phpunit - bundle install --without=production --path vendor/bundle - bin/rake spec notify: slack: webhook_url: https://hooks.slack.com/services/ABC123DEFG/987ZYX/sBdiCpG7hZx username: drone channel: "#colorme" when: success: true failure: true ؀ڥม਺Λઃఆ
  27. ESPOFZNM --- build: image: docker.pepabo.com/colorme/colorme-docker:0.0.1 environment: - ENV=test commands: -

    ./vendor/bin/phpunit - bundle install --without=production --path vendor/bundle - bin/rake spec notify: slack: webhook_url: https://hooks.slack.com/services/ABC123DEFG/987ZYX/sBdiCpG7hZx username: drone channel: "#colorme" when: success: true failure: true ࣮ߦ͢ΔίϚϯυ
  28. ESPOFZNM --- build: image: docker.pepabo.com/colorme/colorme-docker:0.0.1 environment: - ENV=test commands: -

    ./vendor/bin/phpunit - bundle install --without=production --path vendor/bundle - bin/rake spec notify: slack: webhook_url: https://hooks.slack.com/services/ABC123DEFG/987ZYX/sBdiCpG7hZx username: drone channel: "#colorme" when: success: true failure: true ݁ՌΛ4MBDLʹ௨஌
  29. ϓϥΠϕʔτ%PDLFSϨδετϦ w%PDLFSΫϥελʢ%PDLFS4XBSNʣΛߏங͢ΔͨΊ༻ҙ w$*༻ͷ%PDLFSΠϝʔδΛQVTI͓ͯ͘͠ wެ։ͨ͘͠ͳ͍%PDLFSΠϝʔδ΋҆৺҆શ

  30. 1. push 0. docker build && docker push 3. pull

    devs repos private
  31. ݱ৔ͷ੠

  32. ར༻ྫɿΧϥʔϛʔγϣοϓ ϦϙδτϦݸʢ$*Λར༻͍ͯ͠Δ΋ͷ͕ʣ ։ൃऀ਺ਓʢΤϯδχΞ σβΠφʔʣ ༻్ࣗಈςετʢ1)1 3VCZ +BWB4DSJQUʣ ؀ڥͷભҠ+FOLJOTˠESPOF

  33. ϦϦʔεϑϩʔ τϐοΫϒϥϯνͰ։ൃ ׬੒ͨ͠ΒϨϏϡʔґཔ $*ςετ௨ͬͯΔ ϨϏϡʔ0, ͳΒNBTUFSʹϚʔδɺσϓϩΠ ˝ ˝ QVTI͞ΕͨΒςετ

  34. ଓʑͱςετ͕ߦΘΕ͍ͯ͘෩ܠ

  35. ௨஌ͷ͋Δ෩ܠ

  36. ؀ڥΛҠߦͯ͠ͷॴײ w$*؀ڥࣗମͷτϥϒϧ͕ݮͬͨ w+FOLJOTͷࠒ͸ϓϥάΠϯͷόʔδϣϯΞοϓͰ؀ڥյ͢ͷ͕ྲྀߦͬͯͨ w ࠓ͸0⒏DJBMͷ%PDLFS*NBHF͋Δ͠αοͱ࠶ߏஙͰ͖ͯࠔΒͳͦ͏ wࠔͬͨͱ͖୭ʹͰ΋࣭໰Ͱָ͖ͯ w։ൃऀ༻νϟϯωϧͰࡶʹ࣭໰͢ΔͱҰॠͰղܾ͢Δ wͦ΋ͦ΋ࠔΔػձ͕ܹݮͨ͠

  37. ༏͍͠ੈք

  38. ՝୊

  39. ESPOFଆͷ՝୊ %PDLFSଆͷ՝୊ ݱ৔ͷ՝୊

  40. ESPOFଆͷ՝୊ w࢖༻ྔʹԠͨ͡Ϧιʔε੍ޚ wεέδϡʔϥ͕ಉ࣌ىಈδϣϒ਺੍͔͠ݶͰ͖ͳ͍ w֤δϣϒͷϦιʔε࢖༻ྔʹԠ੍ͨ͡ݶ͕͍ͨ͠

  41. %PDLFSଆͷ՝୊ wNBTUFSͷ%PDLFSσʔϞϯͷ࢖༻ϝϞϦ͕ଠ͍ͬͯ͘ w࢖͍ํͷ໰୊ʁ wDSPOͰఆظతʹ࠶ىಈͯ͠ରԠத wͦ΋ͦ΋ϝϞϦ͕૿͑ଓ͚ͳ͍࢓૊ΈΛ࡞Γ͍ͨ

  42. ݱ৔ͷ՝୊ w%PDLFSͷཧղ w֓೦΍ૢ࡞ํ๏Λ͋·Γ஌Βͳ͍ਓ΋ͦΕͳΓʹ͍Δ wগ਺ͷ༗ࣝऀ͔͠ϝϯςφϯε͠ͳ͍%PDLFSpMF wνʔϜͰϋϯζΦϯ΍Δͱྑͦ͞͏

  43. ·ͱΊ wϖύϘͷେ౷Ұ$*؀ڥΛ঺հ͠·ͨ͠ wνʔϜ͝ͱͷ؀ڥ͔Β౷Ұ؀ڥ΁ͷมભ w౷Ұ$*ج൫ͷશମ૾ w$*ج൫Λར༻͢Δݱ৔ͷ੠ w$*ج൫ͱݱ৔ͷ՝୊

  44. &/+0: %&7&-011*/( 8*5)$*