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

イマドキSaaSで静的解析 / codacy_codecov

イマドキSaaSで静的解析 / codacy_codecov

Presented on #PHPBLT #7 https://phpblt.connpass.com/event/55972/

introduce CODACY, CodeCov.

Jun Watanabe

May 22, 2017
Tweet

More Decks by Jun Watanabe

Other Decks in Programming

Transcript

  1. ΠϚυΩSaaSͰ
    ੩తղੳ
    2017/05/22 PHP BLT #7
    Jun Watanabe
    CODACY + CodeCov

    View full-size slide

  2. Jun Watanabe @rela1470
    • ORATTA, Inc. Chief Engineer
    • PHPer
    • αʔόʔνʔϜͰ޷͖উख
    • http://rela.red/

    View full-size slide

  3. http://asuka-zero.jp/
    Ϣʔβʔ਺130ສਓಥഁͨ͠Β͍͠
    ฐࣾωΠςΟϒΞϓϦ
    ઓࠃΞεΧZERO x θϩͷ࢖͍ຐ

    View full-size slide

  4. Έͳ͞Μ
    SaaS޷͖Ͱ͔͢!?

    View full-size slide

  5. ๻͸
    େ޷͖
    Ͱ͢!!!

    View full-size slide

  6. ศརπʔϧΛ
    อकෆཁͰ
    ࢖Θͤͯ͘ΕΔ
    (ͪΐͬͱ͓ͨۚ͠ͱҾ͖׵͑ʹ)

    View full-size slide

  7. ৭ʑͳαʔϏεʹ
    ֹ݄Λ෷ͬͯͰ΋
    ΤϯδχΞΛ1ਓ
    ޏ͏ΑΓ͍҆͠
    όϦϡʔ͕ग़Δ
    (ݸਓͷҙݟͰ͢)

    View full-size slide

  8. ंྠͷ࠶։ൃΛ
    ͠ͳͯ͘ࡁΉ

    View full-size slide

  9. πʔϧΛ঎ചʹͯ͠Δ
    ձࣾͷํ͕
    ։ൃͷ͕࣌ؒऔΕΔ
    ࣾ಺ͷยखؒͰ࡞ͬͨ෺ΑΓ
    ྑ͍πʔϧʹܾ·͍ͬͯΔ
    (ݸਓͷҙݟͰ͢)

    View full-size slide

  10. ηΩϡϦςΟ্ͷෆ҆

    View full-size slide

  11. ΄΅ຖ೔
    Ͳ͔͜ͷαʔϏεͰ
    ো֐͕ى͜Δ

    View full-size slide

  12. ୅ସखஈΛ
    ͖ͪΜͱ֬อ
    ͠ͳ͍ͱࢮ͵

    View full-size slide

  13. SaaSଆͷ࢓༷มߋʹ
    ৼΓճ͞ΕΔ

    View full-size slide

  14. ͦΕͰ΋
    ๻͸
    େ޷͖
    Ͱ͢!!!

    View full-size slide

  15. DeployBot
    CodeCov
    2017/05/22 ݱࡏ
    Insomnia Teams

    View full-size slide

  16. DeployBot
    2017/05/22 ݱࡏ
    Insomnia
    CodeCov
    CodeCov

    View full-size slide

  17. ΋͏গ͠ৄ͘͠...

    View full-size slide

  18. ෳ਺ͷ
    ੩త෼ੳπʔϧΛ
    ·ͱΊͯՄࢹԽ

    View full-size slide

  19. JavaScript
    Scala
    Java
    PHP
    Python
    CoffeeScript
    CSS
    Ruby
    Swift
    C/C++

    View full-size slide

  20. Issues / Complex Files /
    Duplicated Code / Coverage

    View full-size slide

  21. ࢦఠΛϓϧϦΫίϝϯτʹ
    ͢Δ͜ͱ΋Մೳ
    (SideCIతͳ)

    View full-size slide

  22. ΧόϨοδ
    ϏϡʔΞʔ

    View full-size slide

  23. Issuesͷ
    είΞ੍͕࣌ؒ

    View full-size slide

  24. Goals
    ɾϦίϝϯυػೳ
    ɾਐḿɺܦա࣌ؒ
    ɾࣅͨΑ͏ͳ໰୊΍Ұॹʹ΍Ε͹ḿΔλεΫ
    ɾमਖ਼ʹ͔͔Δ࣌ؒΛܭࢉ

    View full-size slide

  25. Ͳ͔͜ΒखΛ෇͚ͨΒྑ͍͔
    Θ͔Γ΍͍͢ɺϞνϕUP

    View full-size slide

  26. ૣ͍!
    (ݸਓͷҙݟͰ͢)

    View full-size slide

  27. ͲΜͳʹϦϙδτϦ਺͕
    ଟͯ͘΋5෼Ҏ಺ʹ
    ݁Ռ͕ฦͬͯ͘Δ
    (࣮੷஋ 3෼ʙ4෼)
    https://support.codacy.com/hc/en-us/articles/207994895-How-long-does-it-take-for-my-project-to-be-analysed-

    View full-size slide

  28. Scrutinizer͸
    ϓϧϦΫͷϚʔδ·Ͱʹ
    ݁Ռ͕ฦͬͯ͜ͳ͍...
    (1Organization 1Container͕ਏ͍)

    View full-size slide

  29. ΧόϨοδʹ
    ಛԽͨ͠
    ՄࢹԽπʔϧ

    View full-size slide

  30. ϓϧϦΫίϝϯτʹάϥϑ

    View full-size slide

  31. 1ίϛοτຖʹධՁ͞ΕΔͷͰ
    Ϋιίϛοτ͕Ұ໨ྎવ

    View full-size slide

  32. ΧόϨοδ཰Լ͛ͨΒ
    Ϛʔδͤ͞ͳ͍ͱ͔

    View full-size slide

  33. Chrome ExtensionͰ
    Github্ʹ
    ΧόϨοδϨϙʔτΛදࣔ

    View full-size slide

  34. ૣ͍!
    (٬؍తʹݟͯ΋!)

    View full-size slide

  35. 1ඵͱ͔2ඵͰ
    ฦͬͯ͘Δ

    View full-size slide

  36. CODACY
    CodeCov

    View full-size slide

  37. CODACY
    CodeCov

    View full-size slide

  38. DeployBot
    CodeCov
    Insomnia Teams

    View full-size slide