Skip to content

Commit

Permalink
Extracted ruby versions for matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 26, 2019
1 parent 4b89261 commit c4d03c3
Showing 1 changed file with 64 additions and 27 deletions.
91 changes: 64 additions & 27 deletions azure-pipelines.yml
@@ -1,29 +1,66 @@
# Ruby
# Package your Ruby project.
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
ruby 2.3:
ruby_version: '2.3.7'
ruby 2.4:
ruby_version: '2.4.4'
ruby 2.5:
ruby_version: '2.5.1'
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: $(ruby_version)
- script: |
gem install bundler
bundle install --retry=3 --jobs=4
displayName: 'bundle install'
- script: ruby -Ilib exe/rake
displayName: 'ruby -Ilib exe/rake'

strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.13'
windows:
imageName: 'vs2017-win2016'
- job: macOS
pool:
vmImage: 'macos-10.13'
strategy:
matrix:
ruby 2.3:
ruby_version: '2.3.7'
ruby 2.4:
ruby_version: '2.4.4'
ruby 2.5:
ruby_version: '2.5.1'
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: $(ruby_version)
- script: |
gem install bundler
bundle install --retry=3 --jobs=4
displayName: 'bundle install'
- script: ruby -Ilib exe/rake
displayName: 'ruby -Ilib exe/rake'

pool:
vmImage: $(imageName)

steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 2.0'

- script: |
gem install bundler
bundle install --retry=3 --jobs=4
displayName: 'bundle install'

- script: ruby -Ilib exe/rake
displayName: 'ruby -Ilib exe/rake'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
ruby 2.3:
ruby_version: '2.3.7'
ruby 2.4:
ruby_version: '2.4.4'
ruby 2.5:
ruby_version: '2.5.1'
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: $(ruby_version)
- script: |
gem install bundler
bundle install --retry=3 --jobs=4
displayName: 'bundle install'
- script: ruby -Ilib exe/rake
displayName: 'ruby -Ilib exe/rake'

0 comments on commit c4d03c3

Please sign in to comment.