From cbf75ebf1947e48183f71f90f79f675f6ec15db4 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Sun, 26 Jul 2015 22:05:43 -0700 Subject: [PATCH] Add travis.yml so we can start testing properly again This commit also updates the README but that's like, whatever man --- .travis.yml | 24 ++++++++++++++++++++++++ README.md => README.adoc | 34 ++++++++++++++++++---------------- 2 files changed, 42 insertions(+), 16 deletions(-) create mode 100644 .travis.yml rename README.md => README.adoc (53%) diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b0e8da5 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.adoc similarity index 53% rename from README.md rename to README.adoc index d0b230e..249eeb5 100644 --- a/README.md +++ b/README.adoc @@ -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