logstash/ci/test_supported_plugins.sh
Andrea Selva 5d6aa105b0
Script to run all plugins tests and try an install, rooting in local Logstash (#15018)
Implements a script to test all supported plugins against Logstash/JRuby, in particular it uses the JRuby(and JDK) bundled with Logstash to execute the unit tests, create the gem and install the gem on local Logstash.

This doesn't start a real pipeline run into the local Logstash, but should be enough to reveal macroscopic Ruby syntax compatibility errors.

Refer to PR  https://github.com/elastic/logstash/pull/15018 for usage examples.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2023-07-18 10:37:44 +02:00

7 lines
No EOL
240 B
Bash
Executable file

#!/bin/sh -ie
export JRUBY_OPTS="-J-Xmx1g"
export GRADLE_OPTS="-Xmx4g -Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info -Dfile.encoding=UTF-8"
./gradlew assemble
bin/ruby ci/test_supported_plugins.rb $@