Add travis.yml so we can start testing properly again

This commit also updates the README but that's like, whatever man
This commit is contained in:
R. Tyler Croy 2015-07-26 22:05:43 -07:00
parent e15c36bbb6
commit cbf75ebf19
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 42 additions and 16 deletions

24
.travis.yml Normal file
View File

@ -0,0 +1,24 @@
language: groovy
sudo: false
install:
- ./gradlew clean
script:
- ./gradlew -S -i
- ./gradlew -S -i gradleTest
jdk:
- oraclejdk7
- oraclejdk8
- openjdk7
os:
- linux
- osx
env: TERM=dumb
cache:
directories:
- $HOME/.gradle

View File

@ -1,31 +1,33 @@
jruby-gradle-storm-plugin
=========================
= JRuby/Gradle Storm Plugin
[![Build Status](https://buildhive.cloudbees.com/job/jruby-gradle/job/jruby-gradle-war-plugin/badge/icon)](https://buildhive.cloudbees.com/job/jruby-gradle/job/jruby-gradle-storm-plugin/) [![Gitter chat](https://badges.gitter.im/jruby-gradle/jruby-gradle-plugin.png)](https://gitter.im/jruby-gradle/jruby-gradle-plugin)
JRuby/Gradle plugin to manage creating Storm topology jars
JRuby Gradle plugin to manage creating Storm topology jars
## Usage
== Usage
**NOTE:** This plugin is stili in a very early stages.
Including the plugin:
```groovy
[source, groovy]
----
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jruby-gradle:jruby-gradle-storm-plugin:0.1.3+'
classpath "com.github.jruby-gradle:jruby-gradle-storm-plugin:0.2.0"
}
}
```
----
### Running a "local" topology
== Running a "local topology"
The `JRubyStormLocal` task provides the underlying machinery to run a
[redstorm](https://github.com/jruby-gradle/redstorm) topology in "local" mode:
link:https://github.com/jruby-gradle/redstorm[Redstorm] topology in "local"
mode:
```groovy
[source, groovy]
----
import com.github.jrubygradle.storm.JRubyStormLocal
task runLocalTopology(type: JRubyStormLocal) {
@ -33,14 +35,14 @@ task runLocalTopology(type: JRubyStormLocal) {
// the task is executed in
topology 'topologies/example_topology.rb'
}
```
----
Then you can run the local topology with: `./gradlew runLocalTopology`
**Note:** The Gradle script will block until the local topology is terminated
(Ctrl+C)
NOTE: The Gradle script will block until the local topology is terminated (Ctrl+C)
### Creating a topology .jar
== Creating a topolog .jar
Creating a topology `.jar` file is useflu when you plan on uploading your
topology to a running Storm cluster. *Currently* this plugin will only create