Files
swift-nio-imap/docker/docker-compose.yaml
T
Johannes Weiss a11274457b don't make the user install SwiftFormat (#151)
Motivation:

Requiring the user to install SwiftFormat is very hostile. First, we
shouldn't require them to install random tools. Second, it'll only work
if the user and the CI use the _exact same_ version of SwiftFormat.

Modification:

- Use SwiftPM to get SwiftFormat

Result:

scripts/sanity does more actual sanity.
2020-05-18 15:13:13 +01:00

39 lines
908 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-email:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-nio-email: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
# no -warnings-as-errors until https://github.com/nicklockwood/SwiftFormat/issues/628 is fixed
command: /bin/bash -xcl "swift test --enable-test-discovery $${SANITIZER_ARG-}"
# util
shell:
<<: *common
entrypoint: /bin/bash