blob: bb989ac70c2d9740c2ff682a4a9d4c4e80640cb8 (
plain)
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
|
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '= 2.4'
- script: |
ruby -v
ridk version
displayName: 'ruby -v + ridk version'
- script: |
mkdir tmp
cd tmp
mkdir home
displayName: 'work around readline crash (for https://github.com/bundler/bundler/issues/6902)'
- script: |
git apply --ignore-space-change --ignore-whitespace .azure-pipelines\rbreadline.diff --directory=C:/hostedtoolcache/windows/Ruby/2.4.3/x64/lib/ruby/site_ruby --unsafe-paths
displayName: 'patch local readline implementation (for https://github.com/bundler/bundler/issues/6907)'
- script: |
ruby bin/rake spec:deps
displayName: 'ruby bin/rake spec:deps'
- script: |
gem install --no-document --conservative rspec_junit_formatter
displayName: 'gem install rspec_junit_formatter'
- script: |
ruby -r rspec_junit_formatter bin/rspec --format progress --format RspecJunitFormatter -o rspec/bundler-junit-results.xml || exit 0
displayName: 'ruby bin/rspec'
- task: PublishTestResults@2
inputs:
testRunner: JUnit
testResultsFiles: rspec/bundler-junit-results.xml
displayName: Publish test results
condition: succeededOrFailed()
|