icon

Script Runner

Run scripts from a file

The Step runs a script from a file using a specified executor. It provides great flexibility and lets you run any file written in any scripting language, such as Bash, Ruby, PHP, Python, etc.

Configuring the Step

  1. Choose a script to run by specifying its location and name in the Script location input. For example, if you have a script.py in your root directory, you could put in: $BITRISE_SOURCE_DIR/script.py.
  2. Specify which executor to use for the script in the Execute with / runner binary input.
  3. (Optional) Under the Debug tab, you can specify a working directory for the script in the Working directory input and enable debug logging in the Debug print? input.

Related Steps

Similar steps

Downloads and Runs a bash script stored on a private GitHub repo.

Found a great GitHub Gist that you'd like to use during your workflow? Just add the raw URL, Bitrise will download it and run it as a bash script!

Install the gems you need, run the script you'd like.

Run your ApiSpotter tests and get the test result to your Bitrise build.