move the specs cleaning for logstash plugins to packaging time

Fixes #2285
This commit is contained in:
Pere Urbon-Bayes 2014-12-30 19:14:34 +01:00 committed by Jordan Sissel
parent ab0a654be8
commit 3472fabb3a
2 changed files with 1 additions and 6 deletions

View file

@ -25,6 +25,7 @@ namespace "artifact" do
@exclude_globs << "spec/reports/**/*"
@exclude_globs << "**/*.gem"
@exclude_globs << "**/test/files/slow-xpath.xml"
@exclude_globs << "**/logstash-*/spec"
return @exclude_globs
end

View file

@ -144,12 +144,6 @@ namespace "vendor" do
sleep(1)
end
end
# We aim to clean up specs within the logstash related projects, as we know they
# not necessary to have while packaging.
Dir.glob("vendor/bundle/jruby/*/gems/logstash-*/spec").each do |dir|
FileUtils.rm_rf(dir)
end
# because --path creates a .bundle/config file and changes bundler path
# we need to remove this file so it doesn't influence following bundler calls
FileUtils.rm_rf(::File.join(LogStash::Environment::LOGSTASH_HOME, "tools/.bundle"))