summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index cc8bfb1..5a16412 100644
--- a/Rakefile
+++ b/Rakefile
@@ -41,6 +41,9 @@ namespace :spec do
RSpec::Core::RakeTask.new(host.to_sym) do |t|
ENV['TARGET_TEST'] = test
ENV['TARGET_HOST'] = host
+ if ENV['CI_FLAG']
+ t.rspec_opts = "--format RspecJunitFormatter --out ../report/serverspec/results_#{test}_#{host}.xml"
+ end
t.pattern = "spec/#{test}/#{host}_spec.rb"
end
end