Skip to content

Commit ec6bac3

Browse files
committed
[CI] Use test discovery on linux platform
1 parent b20fdce commit ec6bac3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

azure-pipelines.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ stages:
8585
linuxSwift52:
8686
imageName: 'ubuntu-20.04'
8787
containerImage: 'swift:5.2.5-focal'
88+
SWIFT_TEST_DISCOVERY: '--enable-test-discovery'
8889
linuxSwift53:
8990
imageName: 'ubuntu-20.04'
9091
containerImage: 'swift:5.3.3-focal'
92+
SWIFT_TEST_DISCOVERY: '--enable-test-discovery'
9193
linuxSwift54:
9294
imageName: 'ubuntu-20.04'
9395
containerImage: 'swift:5.4.3-focal'
@@ -110,13 +112,13 @@ stages:
110112
- script: |
111113
set -e -o xtrace
112114
swift --version
113-
swift build
114-
swift test --filter BitByteDataTests
115+
swift build $SWIFT_TEST_DISCOVERY
116+
swift test --filter BitByteDataTests $SWIFT_TEST_DISCOVERY
115117
displayName: 'Build & Test'
116118
- script: |
117119
set -e -o xtrace
118120
swift --version
119-
swift build -c release # Check Release build just in case.
121+
swift build -c release $SWIFT_TEST_DISCOVERY # Check Release build just in case.
120122
displayName: 'Build Release'
121123
- job: windows
122124
strategy:

0 commit comments

Comments
 (0)