Top Banner
Deploy your app with one Slack command Fabio Milano - @iamfabiomilano
28

Deploy your app with one Slack command

Apr 08, 2017

Download

Technology

Fabio Milano
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Deploy your app with one Slack command

Deploy your app with one Slack command

Fabio Milano - @iamfabiomilano

Page 2: Deploy your app with one Slack command
Page 3: Deploy your app with one Slack command
Page 4: Deploy your app with one Slack command
Page 5: Deploy your app with one Slack command
Page 6: Deploy your app with one Slack command
Page 7: Deploy your app with one Slack command
Page 8: Deploy your app with one Slack command
Page 9: Deploy your app with one Slack command
Page 10: Deploy your app with one Slack command
Page 11: Deploy your app with one Slack command
Page 12: Deploy your app with one Slack command
Page 13: Deploy your app with one Slack command

iOS Project

Page 14: Deploy your app with one Slack command

FastfileiOS Project Fastlane

Page 15: Deploy your app with one Slack command

Fastfile“There is a lane for that”

Page 16: Deploy your app with one Slack command

– Fastlane docs

“There are multiple ways of doing code signing right. Letting Xcode automatically choose the provisioning profile is not one of them.”

Demo

Page 17: Deploy your app with one Slack command

FastfileiOS Project Fastlane

Page 18: Deploy your app with one Slack command

😰

Page 19: Deploy your app with one Slack command
Page 20: Deploy your app with one Slack command

The configuration filexcode_select: '/Applications/Xcode-beta.app' # Choose the xcode version to use

sdk: iphoneos9.0 # SDK to use when building

scheme: Awesome app # Project scheme name

# Per lane settings

tests:

remote_branch: develop # Project's reference branch to checkout

configuration: Development # Project's configuration to use when "build"

notifications: NO # Enable/disable an notifications

team_id: APPLE_TEAM_ID # Team id to use

targets: # A collection of all project's targets. This is useful when fetching provisioning profiles for each of them

- target_identifier: PROJECT # Convenience identifier. You can this reused in your Fastfile.

app_identifier: com.touchwonders.awesomeapp.development # Bundle identifier for current target

- targetidentifier: WATCHKIT_EXTENSION

app_identifier: com.touchwonders.awesomeapp.development.watchkitextension

- targetidentifier: WATCH_APP

app_identifier: com.touchwonders.awesomeapp.development.watchapp

Page 21: Deploy your app with one Slack command

Fastfile

FastfileiOS Project Fastlane

import_from_git

Page 22: Deploy your app with one Slack command

import_from_git(url:"twgitlab:library/fastlane.git",    path:"Fastfile")  

fastlane_version  "1.14.0"  

default_platform  :ios  

platform  :ios  do  

end

platform  :ios  do  

   desc  "Submit  a  new  daily  build"      lane  :development  do  |options|            #  Prepare  current  environment            prepare  

         #  Download  all  required  provisioning  profiles            get_provisioning_profile  

         #  Last  step  before  ‘build&archive’            #  (i.e.  increment  build  number,check  debug  code)            project_warm_up  

         #  "Build  and  archive"  treatment            build_and_archive  

         #  Publish  the  result            publish(service:  options[:service])        end  

end

Page 23: Deploy your app with one Slack command

😫

Page 24: Deploy your app with one Slack command

RESTFul API

Fastfile

FastfileiOS Fastlane

Page 25: Deploy your app with one Slack command
Page 26: Deploy your app with one Slack command

/deploy {project_name} {lane_name}

Page 27: Deploy your app with one Slack command

– Nick Arnott

“A provisioning profile walks into a Xcode’s bar and orders a drink. Xcode turns to a different profile, hands him the drink and tells him

that it’s not his drink.”

Demo

Page 28: Deploy your app with one Slack command

Thank youwww.touchwonders.com