Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ require 'bundler/gem_helper'
Bundler::GemHelper.install_tasks :dir => File.dirname(__FILE__)

require 'rake/clean'
CLEAN << "pkg" << "doc" << Dir['integration/**/target']
CLEAN << "pkg" << "doc" << Dir['integration/**/target'] << "lib/warbler_jar.jar"

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ['--color', "--format documentation"]
end

task :spec => :jar

task :default => :spec

# use Mavenfile to define :jar task
Expand All @@ -36,7 +38,7 @@ task :jar do
end

desc 'run some integration test'
task :integration do
task :integration => :jar do
success = mvn.verify
exit(1) unless success
end
Expand Down
Binary file removed lib/warbler_jar.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions warbler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ bundle up all of your application files for deployment to a Java environment.}
reject { |file| file =~ /^spec|test\// }. # spec/**/*.spec
reject { |file| file =~ /^integration\// }. # (un-used) *.rake files
reject { |file| file =~ /^rakelib\// } # (un-used) *.rake files
gem.files << "lib/warbler_jar.jar"

gem.test_files = [] # tests and specs add 700k to the gem, so don't include them
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.require_paths = ["lib"]
Expand Down