-
Notifications
You must be signed in to change notification settings - Fork 124
/
azure-pipelines.yml
51 lines (42 loc) · 1.15 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
41
42
43
44
45
46
47
48
49
50
# 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '3.1.x'
- task: Bash@3
inputs:
targetType: 'inline'
script: |
gem install bundler
bundle install --retry=3 --jobs=4
displayName: 'Install dependencies'
- task: Bash@3
inputs:
targetType: 'inline'
script: 'bundle exec rake ci'
displayName: 'Run unit tests'
continueOnError: true
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/test*.xml'
failTaskOnFailedTests: true
displayName: 'Verify and publish test results'
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'Low'
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
failOnAlert: true