From d8ef63c9e22c5dd2b8491dc2a80b187bf92d8423 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Mon, 13 Oct 2014 21:06:41 -0400 Subject: [PATCH] add initial specification document --- SPECIFICATION.md | 196 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 SPECIFICATION.md diff --git a/SPECIFICATION.md b/SPECIFICATION.md new file mode 100644 index 0000000..ce2ea56 --- /dev/null +++ b/SPECIFICATION.md @@ -0,0 +1,196 @@ +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 = + +```