Files
swift-nio-ssl/docker/docker-compose.yaml
T
Cory Benfield c608fe2787 Fix the docs and add infrastructure for CI-ing it (#422)
* Fix the docs and add infrastructure for CI-ing it

* Update soundness for 2023
2023-04-11 03:44:18 -07:00

54 lines
1.3 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.1804.50.yaml run test
version: "3"
services:
runtime-setup:
image: swift-nio-ssl:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-nio-ssl: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"
unit-tests:
<<: *common
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors --enable-test-discovery"
integration-tests:
<<: *common
command: /bin/bash -xcl "./scripts/integration_tests.sh"
documentation-check:
<<: *common
command: /bin/bash -xcl "./scripts/check-docs.sh"
test:
<<: *common
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors --enable-test-discovery $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-} && ./scripts/integration_tests.sh"
performance-test:
<<: *common
command: /bin/bash -xcl "swift build -c release && ./.build/release/NIOSSLPerformanceTester"
# util
shell:
<<: *common
entrypoint: /bin/bash