The Probo.CI Script plugin is very similar to the Shell plugin but is designed to run multiple lines of commands.
command, the Probo Script plugin requires a parameter for
script. This allows you to define a set of Shell commands to run during the Probo Build process for your site. You can list as many commands as you like within the steps in your
.probo.yaml file. Remember to include a
name for each
Probo Script Plugin Examples
Using the Probo Script plugin
Add your script as a multi-line YAML string.
You can also add your script in the traditional YAML syntax. Each new line in your script is a new item in the sequence.
Currently a Probo Build Step will pass or fail based on the exit code of last command run in that particular step. Be sure to put any automated tests you want to ensure return the exit code you desire as the last command in a Probo Script Plugin step or in a separate Probo Build Step. False positives will occur if a command exits 1 after automated tests such as behat may actually be failing in the Probo Build Step. This same execution ordering should be noted on Probo plugins that extend the Probo Script Plugin like the Probo LAMP Plugin, the Probo Drupal Plugin, and the Probo Wordpress Plugin.
Developing on a site with a database:
Here is an example using a multi-line YAML string.
Here is an example using traditional YAML syntax.