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

テストとデプロイだけがやりたいことですか?

 テストとデプロイだけがやりたいことですか?

CI/CD Night

1fab9d01b25e99522f3dfd01e3d4cb51?s=128

Soutaro Matsumoto

February 08, 2017
Tweet

Transcript

  1. ςετͱσϓϩΠ͚͕ͩ ΍Γ͍ͨ͜ͱͰ͔͢ʁ দຊफଠ࿠ !TPVUBSP  גࣜձࣾΞΫτΩϟοτ

  2. ݱ୅ͷιϑτ΢ΣΞ։ൃ w <$*>1VMM3FRVFTUΛ࡞ͬͨΒςετΛ࣮ߦ w <$*>1VMM3FRVFTUΛ࡞ͬͨΒεςʔδϯάʹσϓϩΠ w <$*>1VMM3FRVFTUΛ࡞ͬͨΒϕʔλ൛Λ഑෍ w <ਓ>1VMM3FRVFTUΛ࡞ͬͨΒίʔυϨϏϡʔ

  3. ݱ୅ͷ4JEF$* w <4JEF$*>1VMM3FRVFTUΛ࡞ͬͨΒ-*/5Λ࣮ߦ

  4. None
  5. 4JEF$*ͷ͋Δੜ׆  1VMM3FRVFTUΛ࡞Δ  4JEF$*͕ࣗಈతʹ-*/5Λ࣮ߦ͠໰୊Λࢦఠ  मਖ਼  ਓ͕ؒίʔυϨϏϡʔͰ-*/5ʹ͸ൃݟͰ͖ͳ͍໰ ୊Λࢦఠ

     मਖ਼  Ϛʔδ
  6. w ͔͜͜Βઌ͸ϢϏϨδͰͷ࣮ࡍʹ࢖ΘΕ͍ͯΔ༷Λ ࢀߟʹͯ͠࡞ͬͨྫͰ͢ w দຊ͸ϢϏϨδͷٕज़ސ໰Ͱɺ։ൃͷྲྀΕΛׂͱྑ ͘ཧղ͍ͯ͠Δͱ͍͏എܠ͕͋Γ·͢

  7. None
  8. None
  9. None
  10. None
  11. None
  12. None
  13. w ࣗಈͰ-*/5Λ࣮ߦ͠໰୊Λݕग़ w ؾʹೖΒͳ͍৔߹ʹ͸ʮ໌ࣔతʹແࢹʯ͢Δ͜ͱ͕ Ͱ͖Δ w શ෦ͷ໰୊͕ղܾͨ͠Β$PNNJU4UBUVT͕྘ʹͳ ΔͷͰɺຬΛ࣋ͯ͠ਓ͕ؒϨϏϡʔ

  14. None
  15. ActiveRecord::Base.transactionΛ࢖͏৔߹ʹ ͸ɺඞཁͳϨίʔυΛϩοΫ͍ͯ͠Δ͔֬ೝ͠·͠ΐ͏ with_account_lock΍with_menu_lockͳͲͷ"1* Λ࢖ͬͯτϥϯβΫγϣϯΛ։࢝͢ΔͱɺඞཁͳϨίʔ υΛϩοΫ͠·͢ɻ

  16. 2VFSMZ w ϓϩδΣΫτݻ༗ͷϧʔϧΛ:".-Ͱ؆୯ʹఆٛ w େ͖ͳϓϩδΣΫτͩͱɺϓϥΠϕʔτͳ"1*ͱ͔஌ Βͳ͍"1*͕ͨ͘͞Μ - id: com.ubiregi.transaction pattern:

    ActiveRecord::Base.transaction {} message: | ActiveRecord::Base.transactionΛ࢖͏৔߹ʹ͸
 ඞཁͳϨίʔυΛϩοΫ͍ͯ͠Δ͔֬ೝ͠·͠ΐ͏
  17. $ gem install querly