# Docker Compose

This build type is intended to use `docker-compose` to isolate all
dependencies. The author should assume that only that tool is available.

## `.ci.yml` Sections

### `run`

```
run:
  test:
```
Runs a container defined by `test` in `docker-compose.yml` with its default `CMD`.


```
run:
  test: 'npm test'
```
Runs a container defined by `test` in `docker-compose.yml` with the command `npm test`.

```
run:
  test: 'rspec'
  cuke_test: 'cucumber'
  integration:
```
Runs in parallel:
* A container defined by `test` in `docker-compose.yml` with the command
  `rspec`.
* A container defined by `cuke_test` in `docker-compose.yml` with the command
  `cucumber`.
* A container defined by `integration` in `docker-compose.yml` with its default `CMD`.

### `plugins`
See [Plugins](../Plugins.md)

### `notifications`
See [Notifications](../Notifications.md)

# Docker Compose

This build type is intended to use `docker-compose` to isolate all
dependencies. The author should assume that only that tool is available.

## `.ci.yml` Sections

### `before`

```
before: "./some_script && ./another_script"
```
Specify any commands that should be run before building the image.

### `run`

```
run:
  test:
```
Runs a container defined by `test` in `docker-compose.yml` with its default `CMD`.


```
run:
  test: 'npm test'
```
Runs a container defined by `test` in `docker-compose.yml` with the command `npm test`.

```
run:
  test: 'rspec'
  cuke_test: 'cucumber'
  integration:
```
Runs in parallel:
* A container defined by `test` in `docker-compose.yml` with the command
  `rspec`.
* A container defined by `cuke_test` in `docker-compose.yml` with the command
  `cucumber`.
* A container defined by `integration` in `docker-compose.yml` with its default `CMD`.

### `plugins`
See [Plugins](../Plugins.md)

### `notifications`
See [Notifications](../Notifications.md)

Document the syntax for before actions in .ci.yml
Document the syntax for before actions in .ci.yml
