Skip to content

Instantly share code, notes, and snippets.

@erikfloresq
Last active April 24, 2017 23:55
Show Gist options
  • Save erikfloresq/bebe8ccf6bf883cbbdc4f2d964b9f182 to your computer and use it in GitHub Desktop.
Save erikfloresq/bebe8ccf6bf883cbbdc4f2d964b9f182 to your computer and use it in GitHub Desktop.
Fastlane Configuración Base
# Definimos que version minima de Fastlane necesitamos para hacer nuestras tareas
# En el momento que estoy escribiendo el post la ultima version es la 2.28.2
fastlane_version "2.28.2"
# En plataformas vamos a trabajar
default_platform :ios
# lane es como una tarea que asu ves tiene un conjunto de acciones las cuales defines segun lo que gustes
# Es el nombre de este lane es "beta"
lane :beta do
# Instalacion de pods
cocoapods
# Aumentamos el numero del build
# Para este paso tenemos que hacer una configuracion previa que se explica aqui https://developer.apple.com/library/content/qa/qa1827/_index.html
increment_build_number
 # Generamos un build para nuestra aplicación
gym(
# Podemos definir el esquema de donde realizaremos el build
scheme: "Weriklandia",
# el metodo de exportacion pude ser para "app-store" o "ad-hoc" con un certificado de produccion, "development" o "enterprise"
export_method: "development"
)
# Subir el ipa a TestFlight
pilot(skip_waiting_for_build_processing: true)
# Notificar por slack (recuerda que tienes que obtener un webhook de slack para funcione)
slack(
slack_url: "https://hooks.slack.com/services/*******"
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment