Skip to content

Commit

Permalink
Run CI with Xcode 13 & Swift 5.5 (#3711)
Browse files Browse the repository at this point in the history
Currently Xcode 13 beta 5, will switch to GM when available.
  • Loading branch information
jpsim authored Sep 10, 2021
1 parent 8886199 commit 4d3217f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
matrix:
swift54:
containerImage: swift:5.4
# TODO: swift:5.5
container: $[ variables['containerImage'] ]
steps:
- script: swift test --parallel
Expand All @@ -23,14 +24,16 @@ jobs:
matrix:
xcode125:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
xcode13:
DEVELOPER_DIR: /Applications/Xcode_13.0.app
steps:
- script: |
sw_vers
xcodebuild -version
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)
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4d3217f

Please sign in to comment.