defined NIO_CI_BUILD in the CI builds (#765)

Motivation:

Certain warnings we want to ignore in CI builds but we want to keep
`-warnings-to-errors` on.

Modifications:

define `NIO_CI_BUILD` in the CI builds

Result:

can ignore select warnings in CI
This commit is contained in:
Johannes Weiss 2019-01-21 15:24:51 +00:00 committed by Cory Benfield
parent a5b6ca06ab
commit 72370b6b42
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ services:
unit-tests: unit-tests:
image: swift-nio:18.04-5.0 image: swift-nio:18.04-5.0
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors" command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors -Xswiftc -DNIO_CI_BUILD"
integration-tests: integration-tests:
image: swift-nio:18.04-5.0 image: swift-nio:18.04-5.0
@ -27,7 +27,7 @@ services:
test: test:
image: swift-nio:18.04-5.0 image: swift-nio:18.04-5.0
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors && ./scripts/integration_tests.sh" command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors -Xswiftc -DNIO_CI_BUILD && ./scripts/integration_tests.sh"
environment: environment:
- MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=38750 - MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=38750
- MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=698050 - MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=698050

View File

@ -25,7 +25,7 @@ services:
unit-tests: unit-tests:
<<: *common <<: *common
command: /bin/bash -cl "swift test" command: /bin/bash -cl "swift test -Xswiftc -DNIO_CI_BUILD"
integration-tests: integration-tests:
<<: *common <<: *common
@ -33,7 +33,7 @@ services:
test: test:
<<: *common <<: *common
command: /bin/bash -cl "swift test && ./scripts/integration_tests.sh" command: /bin/bash -cl "swift test -Xswiftc -DNIO_CI_BUILD && ./scripts/integration_tests.sh"
echo: echo:
<<: *common <<: *common