mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
* 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
37 lines
894 B
YAML
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"
|