Commands

Whenever you can specify a command in one of the sections, the command can be a simple string, or a hash defining some additional metadata:

build:
  nodes:
    coverage:
      tests:
        before:
          - 'this-is-a-simple-command'
          - command: 'this-is-a-complex-command'
            environment: { ABC: 'foo' }
            not_if: 'test -e foo/bar'
            only_if: 'test -e bar/baz'
            idle_timeout: 600
            background: true
            on_node: 1

Available Keys

command:The command which should be executed.
environment:A key-value hash with environment variables.
not_if:Skip command execution if the exit code is zero.
only_if:Skip command execution if the exit code is non-zero.
idle_timeout:The maximum time that no output has to be produced before considering the command timed out.
background:Whether to execute the command asynchronously in the background.
on_node:On which node to run the command if you want to run tests in parallel. Starts at 1.