-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from ci_reporter_minitest to minitest-reporters
The last commit to ci_reporter_minitest was in 2014 and started to generate deprecation warnings. The minitest-reporters project is maintained.
- Loading branch information
Showing
5 changed files
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ Gemfile.lock | |
InstalledFiles | ||
_yardoc | ||
coverage | ||
jenkins/ | ||
lib/bundler/man | ||
pkg | ||
rdoc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,8 @@ | ||
begin | ||
testtool = 'minitest' | ||
require "ci/reporter/rake/#{testtool}" | ||
namespace :jenkins do | ||
task :unit => ["jenkins:setup:#{testtool}", 'rake:test'] | ||
namespace :jenkins do | ||
task :unit => ['jenkins:setup', 'rake:test'] | ||
|
||
namespace :setup do | ||
task :pre_ci do | ||
ENV["CI_CAPTURE"] = 'off' # prevent clash with minitest's capture_subprocess_io | ||
ENV["CI_REPORTS"] = 'jenkins/reports/unit/' | ||
gem 'ci_reporter' | ||
end | ||
task :minitest => [:pre_ci, "ci:setup:minitest"] | ||
task :test_unit => [:pre_ci, "ci:setup:testunit"] | ||
end | ||
task :setup do | ||
ENV['MINITEST_REPORTER'] ||= 'JUnitReporter' | ||
ENV['MINITEST_REPORTERS_REPORTS_DIR'] ||= 'jenkins/reports/unit/' | ||
end | ||
rescue LoadError | ||
# ci/reporter/rake/minitest not present, skipping this definition | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters