Skip to content

Instantly share code, notes, and snippets.

@zackbraksa
Last active March 25, 2016 16:36
Show Gist options
  • Select an option

  • Save zackbraksa/27f27b7f91075ad49513 to your computer and use it in GitHub Desktop.

Select an option

Save zackbraksa/27f27b7f91075ad49513 to your computer and use it in GitHub Desktop.
lane :beta do
keychain_name = "ci-travis-app"
create_keychain(
name: keychain_name,
default_keychain: true,
unlock: true,
timeout: 3600,
lock_when_sleeps: true,
password: SecureRandom.base64
)
# Import distribution certificate
import_certificate(
certificate_path: "fastlane/Certificates/distribution.p12",
certificate_password: ENV["KEY_PASSWORD"],
keychain_name: keychain_name
)
# Fetch provisioning profile
sigh(
username: "email@example.com",
team_id: "7XQMT35FZ5",
provisioning_name: "com.organization.TravisApp AppStore",
cert_id: "A0R345111F"
)
increment_build_number
# Build your app - more options available
gym(scheme: "TravisApp")
# Upload to TestFlight
pilot
delete_keychain(
name: keychain_name
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment