Files
swift-nio-extras/docker/docker-compose.yaml
T
Johannes Weiß 2516d61aee add docker setup (#4)
Motivation:

We need the docker setup for CI.

Modifications:

Added docker setup. Started with swift-nio's setup and then removed
everything that we don't need (test, http, echo, integration-tests).

Result:

We can move forward doing CI.
2018-05-22 10:31:13 +01:00

29 lines
639 B
YAML

# this file is not designed to be run directly
# instead, use the docker-compose.<os>.<swift> files
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.1604.41.yaml run test
version: "3"
services:
runtime-setup:
image: swift-nio-extras:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-nio-extras:default
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code
working_dir: /code
sanity:
<<: *common
command: /bin/bash -cl "./scripts/sanity.sh"
test:
<<: *common
command: /bin/bash -cl "swift test"