Add a simple `spec` task for running RSpecs (largely failing) from Gradle
This commit is contained in:
parent
f61c511c19
commit
a3f4a6bb00
12
build.gradle
12
build.gradle
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue