Files
swift-nio-ssl/docker/docker-compose.yaml
T
tomer doron 71aa686d58 swift 5.1 docker setup (#133)
* swift 5.1 docker setup

motivation: support swift 5.1

changes:
* use formal swift docker images
* refactor docker-compose to seperate unit tests, integration tests and full test suites
* add docker compose file for swift 5.1, will add CI job once merged
* update swiftformat version to 0.40.12
2019-09-24 20:51:18 +01:00

37 lines
894 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.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
working_dir: /code
sanity:
<<: *common
command: /bin/bash -cl "./scripts/sanity.sh"
unit-tests:
<<: *common
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors"
integration-tests:
<<: *common
command: /bin/bash -cl "./scripts/integration_tests.sh"
test:
<<: *common
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors && ./scripts/integration_tests.sh"