summaryrefslogtreecommitdiff
path: root/.azure-pipelines/steps.yml
blob: 1aedc8a4f86f666047810086d0fe8f0ac0af4fbd (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: |
    bash .azure-pipelines\patch_readline.sh
  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 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()