Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Continuous Delivery for Mobile with fastlane

You're reading from   Continuous Delivery for Mobile with fastlane Automating mobile application development and deployment for iOS and Android

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781788398510
Length 346 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Doron Katz Doron Katz
Author Profile Icon Doron Katz
Doron Katz
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Introduction to fastlane and Continuous Delivery FREE CHAPTER 2. Setting Up fastlane and Our Sample Project 3. Manage Provisioning Profiles with sigh 4. Manage Code Signing Certificates with cert 5. Sync Profiles and Certificates with match 6. Manage Push Notification Profiles with pem 7. Creating Our iOS and Android Apps with produce and supply 8. Build and Package Apps for the App Store with gym 9. Distribute to Testers with TestFlight and Crashlytics 10. Review Your App Metadata with precheck 11. Taking Localized Screenshots with snapshot 12. Put Our Screenshots Inside Frames with frameit 13. Upload Screenshots and Metadata with deliver 14. Automate Unit Tests with scan 15. Integrating Git into the fastlane Workflow 16. Creating and Using fastlane Action Plugins 17. Integrating Slack into the fastlane Workflow 18. Continuous Delivery Best Practices 19. Configurations, Tools, and Resources 20. Other Books You May Enjoy

Calling bash commands using fastlane

If for some reason you need to call a specific command that is not available in the current fastlane library, you have two options. Ideally, if what you need to do would be useful for the general public, create your own action/plugin, as long as it's appealing and generic enough for other developers. If it's a very specific action, fastlane lets you run specific shell sh commands as if you were in the Command Prompt yourself.

Running a shell command is as simple as adding it to your lane, with an action similar to the following:

...
sh(“git add ./screenshots")
...
sh("git commit -m:’Specific update text’”) 
..
sh "bash ./script.sh"

It's quite versatile. As you can see, you are able to interact with your bash shell directly from within fastlane, calling specific shell scripts that...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image