forked from MicrosoftDocs/pipelines-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
40 lines (31 loc) · 1.11 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Ruby
# Package your Ruby application.
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 2.5'
- script: gem install bundler
displayName: 'gem install bundler'
- script: bundle install --retry=3 --jobs=4
displayName: 'bundle install'
#- script: |
# gem install bundler
# bundle install --retry=3 --jobs=4
# displayName: 'bundle install'
- script: bundle exec rake
displayName: 'bundle exec rake'
# - script: bundle exec rspec spec --format RspecJunitFormatter --out test_results/TEST-rspec.xml
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/TEST-*.xml'
testRunTitle: 'Ruby tests'
#- task: PublishCodeCoverageResults@1
# inputs:
# codeCoverageTool: Cobertura
# summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
# reportDirectory: '$(System.DefaultWorkingDirectory)/**/coverage'