Files
swift-aws-lambda-events/docker/docker-compose.yaml
tomer doron 0bd5d23606 remove unnecessary preconcurrency imports (#28)
* remove unnecessary preconcurrency imports

motivation: eliminate warnings

changes: require swift 5.7 and remove unnecessary preconcurrency imports for foundation

* fixup
2023-01-10 16:23:39 -08:00

45 lines
972 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.al2.57.yaml run test
version: "3"
services:
runtime-setup:
image: swift-aws-lambda:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-aws-lambda:default
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code:z
working_dir: /code
cap_drop:
- CAP_NET_RAW
- CAP_NET_BIND_SERVICE
soundness:
<<: *common
command: /bin/bash -cl "./scripts/soundness.sh"
test:
<<: *common
command: /bin/bash -cl "swift test --enable-test-discovery -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
test-samples:
<<: *common
command: >-
/bin/bash -clx "
swift build --package-path Examples/Simple
"
# util
shell:
<<: *common
entrypoint: /bin/bash