Run CI with Xcode 13 & Swift 5.5 (#3711)

Currently Xcode 13 beta 5, will switch to GM when available.
This commit is contained in:
JP Simard 2021-09-10 12:24:39 -04:00 committed by GitHub
parent 888619912f
commit 4d3217f959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 6 deletions

View File

@ -61,7 +61,7 @@ test_tsan:
DYLD_INSERT_LIBRARIES=$(TSAN_LIB) $(TSAN_XCTEST) $(TSAN_TEST_BUNDLE)
write_xcodebuild_log:
xcodebuild -scheme swiftlint clean build-for-testing > xcodebuild.log
xcodebuild -scheme swiftlint clean build-for-testing -destination "platform=macOS" > xcodebuild.log
analyze: write_xcodebuild_log
swift run -c release swiftlint analyze --strict --compiler-log-path xcodebuild.log

View File

@ -10,6 +10,7 @@ jobs:
matrix:
swift54:
containerImage: swift:5.4
# TODO: swift:5.5
container: $[ variables['containerImage'] ]
steps:
- script: swift test --parallel
@ -23,6 +24,8 @@ jobs:
matrix:
xcode125:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
xcode13:
DEVELOPER_DIR: /Applications/Xcode_13.0.app
steps:
- script: |
sw_vers
@ -30,7 +33,7 @@ jobs:
displayName: Version Informations
- script: >
set -o pipefail &&
xcodebuild -scheme swiftlint test |
xcodebuild -scheme swiftlint test -destination "platform=macOS" |
xcpretty -r junit -o build/reports/xcodebuild.xml
displayName: xcodebuild test
- script: bash <(curl -s https://codecov.io/bash)
@ -49,6 +52,8 @@ jobs:
matrix:
xcode125:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
xcode13:
DEVELOPER_DIR: /Applications/Xcode_13.0.app
steps:
- script: |
sw_vers
@ -63,7 +68,7 @@ jobs:
pool:
vmImage: 'macOS-11'
variables:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
DEVELOPER_DIR: /Applications/Xcode_13.0.app
steps:
- script: bundle install --path vendor/bundle
displayName: bundle install
@ -76,7 +81,7 @@ jobs:
pool:
vmImage: 'macOS-11'
variables:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
DEVELOPER_DIR: /Applications/Xcode_13.0.app
steps:
- script: make analyze
displayName: Run SwiftLint Analyze
@ -85,7 +90,7 @@ jobs:
pool:
vmImage: 'macOS-11'
variables:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
DEVELOPER_DIR: /Applications/Xcode_13.0.app
steps:
- script: swift run --sanitize=thread swiftlint lint --lenient
displayName: Pre-cache SwiftLint Run
@ -98,7 +103,7 @@ jobs:
pool:
vmImage: 'macOS-11'
variables:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
DEVELOPER_DIR: /Applications/Xcode_13.0.app
steps:
- script: swift run swiftlint generate-docs
displayName: Run swiftlint generate-docs