mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
motivation: support swift 4.2 and 5.0 changes: * add docker-compose variants for 18.04/4.2 and 18.04/5.0 * update Dockerfile to more correctly handle swift distro urls * update Dockerfile to more correctly handle curl * drop redundant ubuntu prefix
29 lines
637 B
YAML
29 lines
637 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.1804.42.yaml run test
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-nio-http2:default
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
common: &common
|
|
image: swift-nio-http2: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"
|