Specification ============= ## env *type*: object *value*: key/value pairs of environment driver/options ```yaml env: docker: php:latest vagrant: - debian - ubuntu ``` ```json { "env": { "docker": "php:latest", "vagrant": [ "debian", "ubuntu" ] } } ``` ```ini [env] docker = php:latest vagrant = debian ubuntu ``` ## before_build *type*: list/string *value*: single line string command to run or list of commands to be run before the _build_ step ```yaml before_build: - sudo apt-get update - sudo apt-get install --- before_build: ``` ```json { "before_build": [ "sudo apt-get update", "sudo apt-get install " ] } { "before_build": "" } ``` ```ini [global] before_build = sudo apt-get update sudo apt-get install before_build = ``` ## build *type*: list/string *value*: single line string command to run or list of commands to be run as the main build script ```yaml build: - --- build: ``` ```json { "build": [ "" ] } { "build": "" } ``` ```ini [global] build = build = ``` ## after_build *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 ```yaml after_build: --- after_build: - ``` ```json { "after_build": "" } { "after_build": [ "" ] } ``` ```ini [global] after_build = after_build = ``` ## after_success *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 ```yaml after_success: --- after_success: - ``` ```json { "after_success": "" } { "after_success": [ "" ] } ``` ```ini [global] after_success = after_success = ``` ## after_failure *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 ```yaml after_failure: --- after_failure: - ``` ```json { "after_failure": "" } { "after_failure": [ "" ] } ``` ```ini [global] after_failure = after_failure = ```