Files
swift-nio-imap/docker/docker-compose.yaml
T
Yim Lee d3c18350c7 CI updates (#711)
* CI updates

- Add SwiftFormat
- Add CI for Swift nightly
2022-09-05 08:00:34 +02:00

42 lines
1.0 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-imap:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-nio-imap: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"
test:
<<: *common
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors --enable-test-discovery $${SANITIZER_ARG-}"
performance-test:
<<: *common
command: /bin/bash -xcl "swift build -c release -Xswiftc -Xllvm -Xswiftc -align-all-functions=5 -Xswiftc -Xllvm -Xswiftc -align-all-blocks=5 && ./.build/release/NIOIMAPPerformanceTester"
# util
shell:
<<: *common
entrypoint: /bin/bash