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:
parent
888619912f
commit
4d3217f959
2
Makefile
2
Makefile
|
@ -61,7 +61,7 @@ test_tsan:
|
||||||
DYLD_INSERT_LIBRARIES=$(TSAN_LIB) $(TSAN_XCTEST) $(TSAN_TEST_BUNDLE)
|
DYLD_INSERT_LIBRARIES=$(TSAN_LIB) $(TSAN_XCTEST) $(TSAN_TEST_BUNDLE)
|
||||||
|
|
||||||
write_xcodebuild_log:
|
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
|
analyze: write_xcodebuild_log
|
||||||
swift run -c release swiftlint analyze --strict --compiler-log-path xcodebuild.log
|
swift run -c release swiftlint analyze --strict --compiler-log-path xcodebuild.log
|
||||||
|
|
|
@ -10,6 +10,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
swift54:
|
swift54:
|
||||||
containerImage: swift:5.4
|
containerImage: swift:5.4
|
||||||
|
# TODO: swift:5.5
|
||||||
container: $[ variables['containerImage'] ]
|
container: $[ variables['containerImage'] ]
|
||||||
steps:
|
steps:
|
||||||
- script: swift test --parallel
|
- script: swift test --parallel
|
||||||
|
@ -23,6 +24,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
xcode125:
|
xcode125:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
|
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
|
||||||
|
xcode13:
|
||||||
|
DEVELOPER_DIR: /Applications/Xcode_13.0.app
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
sw_vers
|
sw_vers
|
||||||
|
@ -30,7 +33,7 @@ jobs:
|
||||||
displayName: Version Informations
|
displayName: Version Informations
|
||||||
- script: >
|
- script: >
|
||||||
set -o pipefail &&
|
set -o pipefail &&
|
||||||
xcodebuild -scheme swiftlint test |
|
xcodebuild -scheme swiftlint test -destination "platform=macOS" |
|
||||||
xcpretty -r junit -o build/reports/xcodebuild.xml
|
xcpretty -r junit -o build/reports/xcodebuild.xml
|
||||||
displayName: xcodebuild test
|
displayName: xcodebuild test
|
||||||
- script: bash <(curl -s https://codecov.io/bash)
|
- script: bash <(curl -s https://codecov.io/bash)
|
||||||
|
@ -49,6 +52,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
xcode125:
|
xcode125:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
|
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
|
||||||
|
xcode13:
|
||||||
|
DEVELOPER_DIR: /Applications/Xcode_13.0.app
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
sw_vers
|
sw_vers
|
||||||
|
@ -63,7 +68,7 @@ jobs:
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macOS-11'
|
vmImage: 'macOS-11'
|
||||||
variables:
|
variables:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
|
DEVELOPER_DIR: /Applications/Xcode_13.0.app
|
||||||
steps:
|
steps:
|
||||||
- script: bundle install --path vendor/bundle
|
- script: bundle install --path vendor/bundle
|
||||||
displayName: bundle install
|
displayName: bundle install
|
||||||
|
@ -76,7 +81,7 @@ jobs:
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macOS-11'
|
vmImage: 'macOS-11'
|
||||||
variables:
|
variables:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
|
DEVELOPER_DIR: /Applications/Xcode_13.0.app
|
||||||
steps:
|
steps:
|
||||||
- script: make analyze
|
- script: make analyze
|
||||||
displayName: Run SwiftLint Analyze
|
displayName: Run SwiftLint Analyze
|
||||||
|
@ -85,7 +90,7 @@ jobs:
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macOS-11'
|
vmImage: 'macOS-11'
|
||||||
variables:
|
variables:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
|
DEVELOPER_DIR: /Applications/Xcode_13.0.app
|
||||||
steps:
|
steps:
|
||||||
- script: swift run --sanitize=thread swiftlint lint --lenient
|
- script: swift run --sanitize=thread swiftlint lint --lenient
|
||||||
displayName: Pre-cache SwiftLint Run
|
displayName: Pre-cache SwiftLint Run
|
||||||
|
@ -98,7 +103,7 @@ jobs:
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macOS-11'
|
vmImage: 'macOS-11'
|
||||||
variables:
|
variables:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
|
DEVELOPER_DIR: /Applications/Xcode_13.0.app
|
||||||
steps:
|
steps:
|
||||||
- script: swift run swiftlint generate-docs
|
- script: swift run swiftlint generate-docs
|
||||||
displayName: Run swiftlint generate-docs
|
displayName: Run swiftlint generate-docs
|
||||||
|
|
Loading…
Reference in New Issue