mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: keep it DRY Modifications: move redundant commands from 18-04-5.0 and 16.04-5.1 to the generic task definitions
51 lines
1.1 KiB
YAML
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 -warnings-as-errors"
|
|
|
|
integration-tests:
|
|
<<: *common
|
|
command: /bin/bash -cl "./scripts/integration_tests.sh"
|
|
|
|
test:
|
|
<<: *common
|
|
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors && ./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"
|