Skip to content

Commit

Permalink
Merge pull request #166 from rock-core/ruby_test_options
Browse files Browse the repository at this point in the history
provide an alternate way to pass test configuration to Ruby packages
  • Loading branch information
doudou authored Apr 17, 2020
2 parents befc460 + a2ada47 commit 458ae77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions overrides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@
if pkg.kind_of?(Autobuild::Ruby)
pkg.post_import do
if pkg.test_utility.enabled?
pkg.depends_on 'minitest-junit'
pkg.rake_test_options <<
pkg.depends_on "minitest-junit"
pkg.rake_test_options.concat([
"TESTOPTS=--junit --junit-jenkins "\
"--junit-filename=#{pkg.test_utility.source_dir}/report.junit.xml"
"--junit-filename=#{pkg.test_utility.source_dir}/report.junit.xml",
"RUBOCOP=1", "JUNIT=1", "REPORT_DIR=#{pkg.test_utility.source_dir}"
])
end
end
end
Expand Down
3 changes: 3 additions & 0 deletions rock.osdeps
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,6 @@ gem2deb:

qemu:
debian,ubuntu: [qemu-user-static, qemubuilder]

rubocop: gem
rubocop-rock: gem

0 comments on commit 458ae77

Please sign in to comment.