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

レバレッジ効果をもたらす自動化のコツ

 レバレッジ効果をもたらす自動化のコツ

Kishikawa Katsumi

July 31, 2019
Tweet

More Decks by Kishikawa Katsumi

Other Decks in Programming

Transcript

  1. ϨόϨοδޮՌΛੜΉࣗಈԽͷצͲ͜Ζ • ख࡞ۀ => ࣗಈ࣮ߦ • λεΫ͕ίϚϯυϥΠϯʹ੔ཧ͞ΕΔ • λεΫ͕੔ཧɾ෼ղ͞ΕΔ •

    λεΫ͕ίʔυͰදݱ͞ΕΔʢʓʓ as a codeʣ • ܁Γฦ࣮͠ߦՄೳʹͳΔ • τϥοΩϯά͕Մೳ • ෼ۀՄೳʹͳΔ • ࣮ߦ؀ڥ͕҆ఆ͢Δ
  2. ϨόϨοδޮՌΛੜΉࣗಈԽͷצͲ͜Ζ • ख࡞ۀ => ࣗಈ࣮ߦ • λεΫ͕ίϚϯυϥΠϯʹ੔ཧ͞ΕΔ • λεΫ͕੔ཧɾ෼ղ͞ΕΔ •

    λεΫ͕ίʔυͰදݱ͞ΕΔʢʓʓ as a codeʣ • ܁Γฦ࣮͠ߦՄೳʹͳΔ • τϥοΩϯά͕Մೳ • ෼ۀՄೳʹͳΔ • ࣮ߦ؀ڥ͕҆ఆ͢Δ
  3. • deliver • deliver-internal • deliver-external • nightly-build • update-license-plist

    • refresh-dSYMs • test • sync-bitrise-yml • renew-build-cache • update-dependencies • update-tools • nightly-tests App Store Connect/Fabric΁ͷ഑৴ masterͰϑϧϏϧυ͢Δ ͢΂ͯͷςετΛ࣮ߦ OSSͷϥΠηϯε৘ใͷߋ৽ dSYMͷΞοϓϩʔυ PR͝ͱͷςετ Bitrise.ymlͷμ΢ϯϩʔυ ϥΠϒϥϦͷࣗಈߋ৽ πʔϧͷࣗಈߋ৽ ϏϧυΩϟογϡͷΫϦʔχϯά
  4. • deliver • deliver-internal • deliver-external • nightly-build • update-license-plist

    • refresh-dSYMs • test • sync-bitrise-yml • renew-build-cache • update-dependencies • update-tools • nightly-tests App Store Connect/Fabric΁ͷ഑৴ masterͰϑϧϏϧυ͢Δ ͢΂ͯͷςετΛ࣮ߦ OSSͷϥΠηϯε৘ใͷߋ৽ dSYMͷΞοϓϩʔυ PR͝ͱͷςετ Bitrise.ymlͷμ΢ϯϩʔυ ϥΠϒϥϦͷࣗಈߋ৽ πʔϧͷࣗಈߋ৽ ϏϧυΩϟογϡͷΫϦʔχϯά Ϗϧυ؀ڥͷ҆ఆԽ ϦϦʔε͕τϥοΩϯάՄೳ ୭Ͱ΋ɾͲ͜Ͱ΋ɾ͍ͭͰ΋ϦϦʔεՄೳ Ϗϧυ؀ڥ as a code Ϗϧυʹඞཁͳ΋ͷ Ϗϧυखॱ ґଘؔ܎ ෆ۩߹͕ग़ͨͱ͖ͷௐࠪ ؀ڥͷมߋͷτϥοΩϯά
  5. ϏϧυɾςετͷࣗಈԽ $ brew update $ brew reinstall "carthage" $ bundle

    install --path=vendor/bundle --binstubs=vendor/bin $ bundle exec fastlane download_build_cache $ Scripts/build_carthage $ Scripts/build_pods $ bundle exec fastlane folio_tests $ set -o pipefail && xcodebuild test -workspace Folio.xcworkspace -scheme Folio-Release-Staging -destination 'name=iPhone X,OS=11.4' -only-testing:FolioTests -derivedDataPath DerivedData -enableCodeCoverage YES ENABLE_TESTABILITY=YES | xcpretty
  6. ϦϦʔεϏϧυɾ഑৴ͷࣗಈԽ $ brew update $ brew reinstall "carthage" $ bundle

    install --path=vendor/bundle --binstubs=vendor/bin $ bundle exec fastlane download_build_cache $ Scripts/build_carthage $ Scripts/build_pods $ bundle exec fastlane folio_tests $ set -o pipefail && xcodebuild test -workspace Folio.xcworkspace -scheme Folio-Release-Staging -destination 'name=iPhone X,OS=11.4' -only-testing:FolioTests -derivedDataPath DerivedData -enableCodeCoverage YES ENABLE_TESTABILITY=YES | xcpretty