mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-06-02 02:56:03 +08:00
42 lines
1004 B
YAML
42 lines
1004 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
|
|
|
|
soundness:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/soundness.sh"
|
|
|
|
documentation-check:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/check-docs.sh"
|
|
|
|
test:
|
|
<<: *common
|
|
command: /bin/bash -xcl "cat /etc/lsb-release && swift -version && swift test -Xswiftc -warnings-as-errors --enable-test-discovery $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
|
|
|
|
# util
|
|
|
|
shell:
|
|
<<: *common
|
|
entrypoint: /bin/bash
|