Add a simple `spec` task for running RSpecs (largely failing) from Gradle

This commit is contained in:
R. Tyler Croy 2014-10-20 14:43:58 -07:00
parent f61c511c19
commit a3f4a6bb00
1 changed files with 12 additions and 0 deletions

View File

@ -25,10 +25,14 @@ dependencies {
compile group: 'org.apache.storm',
name: 'storm-core',
version: '0.9.2-incubating'
jrubyExec group: 'rubygems', name: 'rspec', version: '2.13+'
jrubyExec group: 'rubygems', name: 'coveralls', version: '0.6.7+'
}
configurations {
runtime.exclude module: 'storm-core'
jrubyExec.extendsFrom compile
}
sourceSets {
@ -61,5 +65,13 @@ jar {
from 'lib'
}
task spec(type: JRubyExec) {
group 'JRuby'
description 'Run the RSpec examples'
jrubyArgs '-S'
script 'rspec'
}
// vim: ft=groovy et ts=4 sw=4