Merge pull request #153 from jpsim/update-azure-pipelines-configuration

Update Azure Pipelines configuration
This commit is contained in:
Norio Nomura 2019-01-18 15:22:45 +09:00 committed by GitHub
commit 3f0a878c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 48 deletions

View File

@ -1,26 +1,3 @@
resources:
containers:
- container: '4.0.2'
image: norionomura/swiftlint:swift-4.0.2
- container: '4.0.3'
image: norionomura/swiftlint:swift-4.0.3
- container: '4.1.0'
image: norionomura/swiftlint:swift-4.1.0
- container: '4.1.1'
image: norionomura/swiftlint:swift-4.1.1
- container: '4.1.2'
image: norionomura/swiftlint:swift-4.1.2
- container: '4.1.3'
image: norionomura/swiftlint:swift-4.1.3
- container: '4.2.0'
image: norionomura/swiftlint:swift-4.2.0
- container: '4.2.1'
image: norionomura/swiftlint:swift-4.2.1
- container: '5.0'
image: norionomura/swift:swift-5.0-branch
- container: 'jazzy'
image: norionomura/jazzy:0.9.4_swift-4.2.1
trigger:
- master
@ -32,22 +9,22 @@ jobs:
maxParallel: 10
matrix:
swift402:
containerResource: '4.0.2'
containerImage: norionomura/swiftlint:swift-4.0.2
swift403:
containerResource: '4.0.3'
containerImage: norionomura/swiftlint:swift-4.0.3
swift410:
containerResource: '4.1.0'
containerImage: norionomura/swiftlint:swift-4.1.0
swift411:
containerResource: '4.1.1'
containerImage: norionomura/swiftlint:swift-4.1.1
swift412:
containerResource: '4.1.2'
containerImage: norionomura/swiftlint:swift-4.1.2
swift413:
containerResource: '4.1.3'
containerImage: norionomura/swiftlint:swift-4.1.3
swift420:
containerResource: '4.2.0'
containerImage: norionomura/swiftlint:swift-4.2.0
swift421:
containerResource: '4.2.1'
container: $[ variables['containerResource'] ]
containerImage: norionomura/swiftlint:swift-4.2.1
container: $[ variables['containerImage'] ]
steps:
- script: swift test --parallel
displayName: swift test with UTF16
@ -70,7 +47,7 @@ jobs:
- job: linux_swift50
pool:
vmImage: 'Ubuntu 16.04'
container: '5.0'
container: norionomura/swift:swift-5.0-branch
steps:
- script: swift test --parallel
displayName: swift test with UTF16
@ -88,26 +65,26 @@ jobs:
maxParallel: 10
matrix:
xcode901:
XCODE_APP: 'Xcode_9.0.1'
DEVELOPER_DIR: /Applications/Xcode_9.0.1.app
xcode91:
XCODE_APP: 'Xcode_9.1'
DEVELOPER_DIR: /Applications/Xcode_9.1.app
xcode92:
XCODE_APP: 'Xcode_9.2'
DEVELOPER_DIR: /Applications/Xcode_9.2.app
xcode931:
XCODE_APP: 'Xcode_9.3.1'
DEVELOPER_DIR: /Applications/Xcode_9.3.1.app
xcode941:
XCODE_APP: 'Xcode_9.4.1'
DEVELOPER_DIR: /Applications/Xcode_9.4.1.app
xcode10:
XCODE_APP: 'Xcode_10'
DEVELOPER_DIR: /Applications/Xcode_10.app
XCODE_FLAGS_FOR_TEST: -parallel-testing-enabled NO
xcode101:
XCODE_APP: 'Xcode_10.1'
DEVELOPER_DIR: /Applications/Xcode_10.1.app
XCODE_FLAGS_FOR_TEST: -parallel-testing-enabled NO
steps:
- script: |
sudo xcode-select -s /Applications/$XCODE_APP.app
xcodebuild -version
echo "##vso[task.setvariable variable=XCODE_FLAGS]-scheme Yams $XCODE_FLAGS_FOR_TEST"
displayName: xcode-select & set XCODE_FLAGS
displayName: xcodebuild -version & set XCODE_FLAGS
- script: >
set -o pipefail &&
xcodebuild $XCODE_FLAGS test |
@ -164,21 +141,21 @@ jobs:
- job: CocoaPods
pool:
vmImage: 'macOS 10.13'
variables:
DEVELOPER_DIR: /Applications/Xcode_9.4.1.app
steps:
- script: sudo xcode-select -s /Applications/Xcode_9.4.1.app
displayName: xcode-select
- script: pod lib lint
displayName: pod lib lint
- 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: xcodebuild -scheme Yams clean build-for-testing > xcodebuild.log
displayName: Generate xcodebuild.log
- script: HOMEBREW_NO_AUTO_UPDATE=1 brew install --HEAD https://raw.github.com/Homebrew/homebrew-core/master/Formula/swiftlint.rb
- script: HOMEBREW_NO_AUTO_UPDATE=1 brew install https://raw.github.com/Homebrew/homebrew-core/master/Formula/swiftlint.rb
displayName: Install SwiftLint
- script: swiftlint analyze --strict --compiler-log-path xcodebuild.log
displayName: Run SwiftLint Analyze
@ -186,7 +163,7 @@ jobs:
- job: jazzy
pool:
vmImage: 'Ubuntu 16.04'
container: 'jazzy'
container: norionomura/jazzy:0.9.4_swift-4.2.1
steps:
- script: bundle install --path vendor/bundle
displayName: bundle install