Skip to content

Commit 1efc24b

Browse files
committed
docker cleanups
1 parent 698082e commit 1efc24b

File tree

6 files changed

+45
-11
lines changed

6 files changed

+45
-11
lines changed

docker/docker-compose.2004.55.yaml

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

1212
test:
1313
image: swift-metrics:20.04-5.5
14-
environment: []
14+
environment:
15+
- FORCE_TEST_DISCOVERY=--enable-test-discovery
1516
#- SANITIZER_ARG=--sanitize=thread
1617

1718
shell:

docker/docker-compose.2004.56.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: "3"
2+
3+
services:
4+
5+
runtime-setup:
6+
image: swift-metrics:20.04-5.6
7+
build:
8+
args:
9+
ubuntu_version: "focal"
10+
swift_version: "5.6"
11+
12+
test:
13+
image: swift-metrics:20.04-5.6∂
14+
environment:
15+
- FORCE_TEST_DISCOVERY=--enable-test-discovery
16+
#- SANITIZER_ARG=--sanitize=thread
17+
18+
shell:
19+
image: swift-metrics:20.04-5.6

docker/docker-compose.2004.57.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: "3"
2+
3+
services:
4+
5+
runtime-setup:
6+
image: swift-metrics:20.04-5.7
7+
build:
8+
args:
9+
ubuntu_version: "focal"
10+
swift_version: "5.7"
11+
12+
test:
13+
image: swift-metrics:20.04-5.7
14+
environment:
15+
- FORCE_TEST_DISCOVERY=--enable-test-discovery
16+
#- SANITIZER_ARG=--sanitize=thread
17+
18+
shell:
19+
image: swift-metrics:20.04-5.7

docker/docker-compose.2004.main.yaml

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

1212
test:
1313
image: swift-metrics:20.04-main
14-
environment: []
14+
environment:
15+
- FORCE_TEST_DISCOVERY=--enable-test-discovery
1516
#- SANITIZER_ARG=--sanitize=thread
1617

1718
shell:

docker/docker-compose.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,9 @@ services:
2626
<<: *common
2727
command: /bin/bash -xcl "./scripts/soundness.sh"
2828

29-
docs:
30-
<<: *common
31-
environment:
32-
- CI
33-
command: /bin/bash -xcl "./scripts/generate_docs.sh"
34-
3529
test:
3630
<<: *common
37-
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
31+
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors $${FORCE_TEST_DISCOVERY-} $${SANITIZER_ARG-}"
3832

3933
# util
4034

scripts/soundness.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3232

3333
function replace_acceptable_years() {
3434
# this needs to replace all acceptable forms with 'YEARS'
35-
sed -e 's/2018-2019/YEARS/' -e 's/2019/YEARS/' -e 's/2018-2020/YEARS/' -e 's/2021/YEARS/'
35+
sed -e 's/2018-2019/YEARS/' -e 's/2019/YEARS/' -e 's/2018-2020/YEARS/' -e 's/2021/YEARS/' -e 's/2022/YEARS/'
3636
}
3737

3838
printf "=> Checking linux tests... "
@@ -88,7 +88,7 @@ for language in swift-or-c bash dtrace; do
8888
matching_files=( -name '*' )
8989
case "$language" in
9090
swift-or-c)
91-
exceptions=( -name c_nio_http_parser.c -o -name c_nio_http_parser.h -o -name cpp_magic.h -o -name Package.swift -o -name CNIOSHA1.h -o -name c_nio_sha1.c -o -name ifaddrs-android.c -o -name ifaddrs-android.h)
91+
exceptions=( -name c_nio_http_parser.c -o -name c_nio_http_parser.h -o -name cpp_magic.h -o -name Package@*.swift -o -name CNIOSHA1.h -o -name c_nio_sha1.c -o -name ifaddrs-android.c -o -name ifaddrs-android.h)
9292
matching_files=( -name '*.swift' -o -name '*.c' -o -name '*.h' )
9393
cat > "$tmp" <<"EOF"
9494
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)