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

BitriseでFastlane/Gradleプラグインの統合テスト

Kenta Kase
September 03, 2019

 BitriseでFastlane/Gradleプラグインの統合テスト

Bitrise User Group Meetup #2での発表スライド
https://bitrise-japan.connpass.com/event/141052/

Kenta Kase

September 03, 2019
Tweet

More Decks by Kenta Kase

Other Decks in Programming

Transcript

  1. AppChecker͕νΣοΫ͢Δ಺༰ • iOS • XcodeɺiOS SDK͕ཁٻόʔδϣϯҎ্͔ • PrivateFrameworkΛ࢖͍ͬͯͳ͍͔ • Android

    • targetSdkVersion͕ཁٻόʔδϣϯҎ্͔ • ෆඞཁʹϓϥΠόγʔʹ௚݁͢ΔpermissionΛऔಘ͍ͯ͠ͳ͍͔ • ৄ͍͠࿩͸iOSDCͰʂ
  2. Ϣχοτςετ • ֎෦ͷґଘ͸mockʢ޿ٛʣ͢Δ • ྫ: Xcodeͷόʔδϣϯ͸ipaͷInfo.plistͷ஋ΛνΣοΫ͍ͯ͠Δ • DTXcode: "1010" ->

    Xcode 10.1ͰϏϧυ͞Εͨ • Info.plistΛύʔεͯ͠࡞ΒΕͨGem::VersionΦϒδΣΫτΛ࢖༻ͯ͠
 Ϗϧυͨ͠Xcodeͷόʔδϣϯ͕ݹ͗͢ͳ͍͔νΣοΫ • ςετͰ͸μϛʔͷ஋Ͱੜ੒ͨ͠Gem::VersionΦϒδΣΫτΛ࢖༻ͯ͠ όʔδϣϯൺֱͷϩδοΫ͕ਖ਼͍͜͠ͱΛݕূ • ຊ෺ͷInfo.plistΛ༻ҙ͠ͳͯ͘΋ϩδοΫͷςετ͕Ͱ͖Δ
  3. ϢχοτςετͰΧόʔͰ͖ͳ ͍͜ͱ • ࣮ࡍʹπʔϧΛ࣮ߦͯ͠Τϥʔ͕ى͖ͳ͍͔ • ༷ʑͳ֎෦πʔϧΛݺͼग़͍ͯ͠ΔͷͰ݁ߏෆ҆ • unzip, grep, xcrun,

    otoolͳͲ • Ϗϧυ؀ڥ͕৽͘͠ͳͬͨ৔߹ʹΤϥʔ͕ى͖ͳ͍͔ • ಛʹXcodeͷόʔδϣϯΛ্͛ͨͱ͖
  4. AppCheckerͷछྨ • iOS • FastlaneϓϥάΠϯɺgemελϯυΞϩϯ൛ • Android • GradleϓϥάΠϯɺgemελϯυΞϩϯ൛ •

    ελϯυΞϩϯ൛͕ඞཁͳཧ༝ • Fastlane/GradleΛ࢖༻͍ͯ͠ͳ͍ήʔϜλΠτϧ༻
  5. ϒϥϯνઓུ • feature, develop, master • ػೳ։ൃpull-reqɿdevelop <- feature •

    ౷߹ςετΛ࣮ߦ • ϦϦʔεpull-reqɿmaster <- develop • ࣗಈϦϦʔε࡞ۀ
  6. ϦϦʔε࡞ۀͷࣗಈԽ • iOS͸githubɺAndroid͸ࣾ಺maven • masterϚʔδͰόʔδϣϯ൪߸Λ୯७૿Ճ • ྫ: 1.13.0 -> 1.14.0

    • ηϚϯςΟοΫόʔδϣχϯά͸ෆཁ • ϓϥοτϑΥʔϜଆͷ࠷৽ࣄ৘ʹରԠ͢ΔͨΊɺ
 ৗʹ࠷৽൛Λ࢖͏લఏ