-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d71194c
commit 1e6d183
Showing
1 changed file
with
2 additions
and
23 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 |
---|---|---|
@@ -1,28 +1,7 @@ | ||
require 'English' | ||
|
||
begin | ||
require "ci/reporter/rake/test_unit" | ||
namespace :jenkins do | ||
task :unit => ["jenkins:setup:test_unit", 'rake:test'] | ||
|
||
namespace :setup do | ||
task :pre_ci do | ||
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 :rubocop do | ||
system("bundle exec rubocop \ | ||
--require rubocop/formatter/checkstyle_formatter \ | ||
--format progress \ | ||
--format RuboCop::Formatter::CheckstyleFormatter \ | ||
--no-color --out rubocop.xml") | ||
exit($CHILD_STATUS.exitstatus) | ||
end | ||
desc 'Sets up CI environment for testing and run tests' | ||
task :unit => ['ci:setup:testunit', 'rake:test'] | ||
end | ||
rescue LoadError | ||
# ci/reporter/rake/rspec not present, skipping this definition | ||
end |