mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
move the specs cleaning for logstash plugins to packaging time
Fixes #2285
This commit is contained in:
parent
ab0a654be8
commit
3472fabb3a
2 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue