Skip to content

Commit

Permalink
Merge pull request realm#2569 from realm/nn-update-azure-pipelines-co…
Browse files Browse the repository at this point in the history
…nfiguration

Update Azure Pipelines configuration
  • Loading branch information
norio-nomura authored Jan 18, 2019
2 parents e347582 + 758be7d commit c20ca08
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
resources:
containers:
- container: '4.2.0'
image: norionomura/swift:42
- container: '4.2.1'
image: norionomura/swift:421

trigger:
- master

Expand All @@ -16,10 +9,10 @@ jobs:
maxParallel: 10
matrix:
swift420:
containerResource: '4.2.0'
containerImage: norionomura/swift:42
swift421:
containerResource: '4.2.1'
container: $[ variables['containerResource'] ]
containerImage: norionomura/swift:421
container: $[ variables['containerImage'] ]
steps:
- script: swift test --parallel
displayName: swift test
Expand All @@ -31,15 +24,14 @@ jobs:
maxParallel: 10
matrix:
xcode10:
XCODE_APP: 'Xcode_10'
DEVELOPER_DIR: /Applications/Xcode_10.app
xcode101:
XCODE_APP: 'Xcode_10.1'
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: git submodule update --init --recursive
displayName: Update git submodules
- script: |
sudo xcode-select -s /Applications/$XCODE_APP.app
displayName: xcode-select
- script: xcodebuild -version
displayName: xcodebuild -version
- script: >
set -o pipefail &&
xcodebuild -workspace SwiftLint.xcworkspace -scheme swiftlint test |
Expand All @@ -58,13 +50,12 @@ jobs:
maxParallel: 10
matrix:
xcode10:
XCODE_APP: 'Xcode_10'
DEVELOPER_DIR: /Applications/Xcode_10.app
xcode101:
XCODE_APP: 'Xcode_10.1'
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: |
sudo xcode-select -s /Applications/$XCODE_APP.app
displayName: xcode-select
- script: xcodebuild -version
displayName: xcodebuild -version
- script: >
set -o pipefail &&
swift test --parallel
Expand All @@ -73,9 +64,9 @@ jobs:
- job: CocoaPods
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: sudo xcode-select -s /Applications/Xcode_10.1.app
displayName: xcode-select
- script: bundle update --bundler
displayName: Update bundler
- script: bundle install --path vendor/bundle
Expand All @@ -86,9 +77,9 @@ jobs:
- job: OSSCheck
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: sudo xcode-select -s /Applications/Xcode_10.1.app
displayName: xcode-select
- script: bundle update --bundler
displayName: Update bundler
- script: bundle install --path vendor/bundle
Expand All @@ -101,18 +92,18 @@ jobs:
- job: Analyze
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: sudo xcode-select -s /Applications/Xcode_10.1.app
displayName: xcode-select
- script: make analyze
displayName: Run SwiftLint Analyze

- job: TSan
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_10.1.app
steps:
- script: sudo xcode-select -s /Applications/Xcode_10.1.app
displayName: xcode-select
- script: swift run --sanitize=thread swiftlint lint --lenient
displayName: Pre-cache SwiftLint Run
- script: swift run --sanitize=thread swiftlint lint --lenient
Expand Down

0 comments on commit c20ca08

Please sign in to comment.