Files
swift-nio/docker/docker-compose.yaml
T
Johannes Weiss 72370b6b42 defined NIO_CI_BUILD in the CI builds (#765)
Motivation:

Certain warnings we want to ignore in CI builds but we want to keep
`-warnings-to-errors` on.

Modifications:

define `NIO_CI_BUILD` in the CI builds

Result:

can ignore select warnings in CI
2019-01-21 15:24:51 +00:00

51 lines
1.1 KiB
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:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-nio:default
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code
working_dir: /code
sanity:
<<: *common
command: /bin/bash -cl "./scripts/sanity.sh"
unit-tests:
<<: *common
command: /bin/bash -cl "swift test -Xswiftc -DNIO_CI_BUILD"
integration-tests:
<<: *common
command: /bin/bash -cl "./scripts/integration_tests.sh"
test:
<<: *common
command: /bin/bash -cl "swift test -Xswiftc -DNIO_CI_BUILD && ./scripts/integration_tests.sh"
echo:
<<: *common
tty: true
ports:
- "9999:9999"
command: /bin/bash -cl "swift run NIOEchoServer 0.0.0.0 9999"
http:
<<: *common
tty: true
ports:
- "8888:8888"
command: /bin/bash -cl "swift run NIOHTTP1Server 0.0.0.0 8888"