Deploying UI library on Travis CI

011714704c4a925e542d426d4cdaa4e3?s=47 giginet
November 18, 2016

Deploying UI library on Travis CI

Deploy your UI library onto Appetize.io via Travis CI

011714704c4a925e542d426d4cdaa4e3?s=128

giginet

November 18, 2016
Tweet

Transcript

  1. Deploying UI library on Travis CI @giginet

  2. @giginet • iOS Engineer @ Cookpad • ։ൃج൫΍ͬͯ·͢ • झຯɿήʔϜ։ൃ

  3. ࠓ೔͸ • fastlaneͱTravis CIͰUIϥΠϒϥϦͷσϞΞϓ ϦΛࣗಈσϓϩΠ͢Δ࿩

  4. None
  5. appetize.io • ϒϥ΢β্ͰiOSγϛϡϨʔλʔىಈͰ͖Δ΍ ͭ

  6. None
  7. None
  8. None
  9. None
  10. None
  11. None
  12. desc "Deploy demo application to Appetize.io" lane :deploy_to_appetize do base_build_dir

    = File.expand_path('build') xcodebuild(project: "#{project_name}.xcodeproj", scheme: scheme_name, xcargs: "CONFIGURATION_BUILD_DIR=#{base_build_dir}", sdk: 'iphonesimulator') app_path = File.join(base_build_dir, "#{scheme_name}.app") zip_path = File.join(base_build_dir, "#{scheme_name}.app.zip") zip(path: app_path, output_path: zip_path) note = last_git_commit[:message] appetize(path: zip_path, note: note) end appetize Action
  13. desc "Deploy demo application to Appetize.io" lane :deploy_to_appetize do base_build_dir

    = File.expand_path('build') xcodebuild(project: "#{project_name}.xcodeproj", scheme: scheme_name, xcargs: "CONFIGURATION_BUILD_DIR=#{base_build_dir}", sdk: 'iphonesimulator') app_path = File.join(base_build_dir, "#{scheme_name}.app") zip_path = File.join(base_build_dir, "#{scheme_name}.app.zip") zip(path: app_path, output_path: zip_path) note = last_git_commit[:message] appetize(path: zip_path, note: note) end appetize Action
  14. desc "Deploy demo application to Appetize.io" lane :deploy_to_appetize do base_build_dir

    = File.expand_path('build') xcodebuild(project: "#{project_name}.xcodeproj", scheme: scheme_name, xcargs: "CONFIGURATION_BUILD_DIR=#{base_build_dir}", sdk: 'iphonesimulator') app_path = File.join(base_build_dir, "#{scheme_name}.app") zip_path = File.join(base_build_dir, "#{scheme_name}.app.zip") zip(path: app_path, output_path: zip_path) note = last_git_commit[:message] appetize(path: zip_path, note: note) end appetize Action
  15. desc "Deploy demo application to Appetize.io" lane :deploy_to_appetize do build_and_upload_to_appetize(

    xcodebuild: { project: 'Foobar.xcodeproj', scheme: scheme_name, sdk: 'iphonesimulator' } ) end build_and_upload_to_appetize Action
  16. None
  17. travis encrypt travis encrypt APPETIZE_API_TOKEN=super_secret --add env.matrix travis encrypt APPETIZE_PUBLICKEY=super_secret

    --add env.matrix
  18. env: global: - LC_CTYPE=en_US.UTF-8 - secure: yKRlKg8ya0pvWnYZ516Tq91Jv6(ry - secure: Xuh1dMd/vkDkech5sjM184te8VV(ry

    matrix: include: - os: osx language: objective-c osx_image: xcode8 script: - bundle exec fastlane deploy_to_appetize
  19. None
  20. https://www.cocoacontrols.com

  21. ·ͱΊ • UIϥΠϒϥϦΛ࡞ͬͨΒappetize.ioʹ্͛ͯ ͓͘ͱ։ൃऀ΋ར༻ऀ΋خ͍͠ • Travis CIͰࣗಈԽ͢Δͱָ • ྑ͍UIϥΠϒϥϦ૿͑ͯཉ͍͠

  22. https://github.com/giginet/ CustomKeyboardTextField

  23. ͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠