mirror of
https://github.com/apple/swift-log
synced 2026-11-28 04:14:20 +00:00
motivation: better ci testing changes: * add api breakage script to test api breakage in ci * add "shell" utility docker-compose task to run api breakage script * change test task to treat warning as errors * prepare to test with thread sanitizer in 5.1
35 lines
737 B
YAML
35 lines
737 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-log:default
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
common: &common
|
|
image: swift-log:default
|
|
depends_on: [runtime-setup]
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh
|
|
- ..:/code
|
|
working_dir: /code
|
|
|
|
sanity:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/sanity.sh"
|
|
|
|
test:
|
|
<<: *common
|
|
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
|
|
|
|
# util
|
|
|
|
shell:
|
|
<<: *common
|
|
entrypoint: /bin/bash
|