Skip to content

Latest commit

 

History

History
196 lines (161 loc) · 2.7 KB

SPECIFICATION.md

File metadata and controls

196 lines (161 loc) · 2.7 KB

Specification

env

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

before_build

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>

build

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>

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

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>

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

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>

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

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>