Files
swift-nio-ssl/docker/docker-compose.yaml
T
tomer doron 0ec8dcf248 api breakage detection (#138)
motivation: test for api breakage on PR

changes:

* add script to detect api breakage
* amend docker setup to include jq
* amend docker-compose setup to include a shell utility task
2019-10-07 15:00:16 -07:00

43 lines
956 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"
# util
shell:
<<: *common
entrypoint: /bin/bash