type: object
value: key/value pairs of environment driver/options
env:
docker: php:latest
vagrant:
- debian
- ubuntu
{
"env": {
"docker": "php:latest",
"vagrant": [
"debian",
"ubuntu"
]
}
}
[env]
docker = php:latest
vagrant =
debian
ubuntu
type: list/string
value: single line string command to run or list of commands to be run before the build step
before_build:
- sudo apt-get update
- sudo apt-get install <package>
---
before_build: <run command here>
{
"before_build": [
"sudo apt-get update",
"sudo apt-get install <package>"
]
}
{
"before_build": "<run command here>"
}
[global]
before_build =
sudo apt-get update
sudo apt-get install <package>
before_build = <run command here>
type: list/string
value: single line string command to run or list of commands to be run as the main build script
build:
- <run command here>
---
build: <run command here>
{
"build": [
"<run command here>"
]
}
{
"build": "<run command here>"
}
[global]
build =
<run command here>
build = <run command here>
type: string/list
value: after build is either a single command string or a list of commands to run after the build, this is always run regardless of success/failure of the build, and is run before the success and failure version
after_build: <run command here>
---
after_build:
- <run command here>
{
"after_build": "<run command here>"
}
{
"after_build": [
"<run command here>"
]
}
[global]
after_build = <run command here>
after_build =
<run command here>
type: string/list
value: after success is either a single command string or a list of commands to run after the build, only if the build step was succesful
after_success: <run command here>
---
after_success:
- <run command here>
{
"after_success": "<run command here>"
}
{
"after_success": [
"<run command here>"
]
}
[global]
after_success = <run command here>
after_success =
<run command here>
type: string/list
value: after failure is either a single command string or a list of commands to run after the build, only if the build step failed
after_failure: <run command here>
---
after_failure:
- <run command here>
{
"after_failure": "<run command here>"
}
{
"after_failure": [
"<run command here>"
]
}
[global]
after_failure = <run command here>
after_failure =
<run command here>