Skip to content

Commit 5fdc8c4

Browse files
authored
Validate missing imports in CI (#127)
1 parent 4832fa0 commit 5fdc8c4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker/docker-compose.2004.main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ services:
1010

1111
test:
1212
image: swift-crypto:20.04-main
13-
environment: []
13+
environment:
14+
- IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
1415
#- SANITIZER_ARG=--sanitize=thread
1516

1617
cmake:

docker/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ services:
2929
test:
3030
<<: *common
3131
# FIXME: get rid of existing warnings
32-
#command: /bin/bash -xcl "swift test --enable-test-discovery -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
33-
command: /bin/bash -xcl "swift test --enable-test-discovery"
32+
#command: /bin/bash -xcl "swift test --enable-test-discovery -Xswiftc -warnings-as-errors $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
33+
command: /bin/bash -xcl "swift test --enable-test-discovery $${IMPORT_CHECK_ARG-}"
3434

3535
cmake:
3636
<<: *common

0 commit comments

Comments
 (0)