summaryrefslogtreecommitdiff
path: root/.azure-pipelines/steps.yml
diff options
context:
space:
mode:
Diffstat (limited to '.azure-pipelines/steps.yml')
-rw-r--r--.azure-pipelines/steps.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.azure-pipelines/steps.yml b/.azure-pipelines/steps.yml
new file mode 100644
index 0000000000..733ca0998e
--- /dev/null
+++ b/.azure-pipelines/steps.yml
@@ -0,0 +1,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()