Files
swift-nio-http2/docker/docker-compose.yaml
T
tomer doron e25490e336 improve docker test setup (#129)
motivation: test task to include h2spec

changes:
* remove older docker-compose files that are not in use on the master branch
* move the task definition from the 18.04/5.0 docker compose file to the generic one
* create a unit-test task to encapsulate the unit tests and change the test task to include unit tests, integration tests and h2 spec verification
2019-05-21 09:49:24 +01:00

41 lines
1007 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.42.yaml run test
version: "3"
services:
runtime-setup:
image: swift-nio-http2:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-nio-http2: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"
h2spec:
<<: *common
command: /bin/bash -cl "./scripts/test_h2spec.sh"
test:
<<: *common
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors && ./scripts/integration_tests.sh && ./scripts/test_h2spec.sh"