Reader small image

You're reading from  Continuous Delivery for Mobile with fastlane

Product typeBook
Published inFeb 2018
Reading LevelBeginner
PublisherPackt
ISBN-139781788398510
Edition1st Edition
Languages
Right arrow
Author (1)
Doron Katz
Doron Katz
author image
Doron Katz

Doron Katz, originally from Sydney, Australia, completed his bachelor's in internet science (the University of Wollongong), before pursuing a master's in management (Charles Sturt University), including a certification in Microsoft Solutions Development. On moving to San Francisco, Doron has worked with various companies, from start-ups to larger organizations, as a software engineer and project manager. Additionally, he is a regular contributor to various distinguished technical publications and has published numerous white papers and also coauthored Developing an iOS Edge.
Read more about Doron Katz

Right arrow

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 you've created, as part of your workflow. In subsequent chapters, we are going to add even more advanced actions, as well as our own crafted action plugin, but, as for what we've...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Continuous Delivery for Mobile with fastlane
Published in: Feb 2018Publisher: PacktISBN-13: 9781788398510

Author (1)

author image
Doron Katz

Doron Katz, originally from Sydney, Australia, completed his bachelor's in internet science (the University of Wollongong), before pursuing a master's in management (Charles Sturt University), including a certification in Microsoft Solutions Development. On moving to San Francisco, Doron has worked with various companies, from start-ups to larger organizations, as a software engineer and project manager. Additionally, he is a regular contributor to various distinguished technical publications and has published numerous white papers and also coauthored Developing an iOS Edge.
Read more about Doron Katz