mirror of
https://github.com/apple/swift-nio-extras
synced 2026-11-25 04:47:50 +00:00
Motivation: We were missing the 5.2 & 5.3 docker compose files and also the syntax wasn't flexible enough to pull in the new nightlies. Modifications: - always specify the full image name - add 5.2 & 5.3 Result: More CI & newer Swifts.
38 lines
858 B
YAML
38 lines
858 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:z
|
|
working_dir: /code
|
|
cap_drop:
|
|
- CAP_NET_RAW
|
|
- CAP_NET_BIND_SERVICE
|
|
|
|
sanity:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/sanity.sh"
|
|
|
|
test:
|
|
<<: *common
|
|
command: /bin/bash -xcl "cat /etc/lsb-release && swift -version && swift test -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
|
|
|
|
# util
|
|
|
|
shell:
|
|
<<: *common
|
|
entrypoint: /bin/bash
|