mirror of
https://github.com/elastic/logstash.git
synced 2025-04-21 13:18:16 -04:00
We've had some issues with builds crashing the gradle daemon on CI servers. This can obfuscate errors. This patch removes its usage in CI. This is considered a gradle best practice: https://docs.gradle.org/current/userguide/gradle_daemon.html#sec:stopping_an_existing_daemon Fixes #9240
15 lines
512 B
Bash
Executable file
15 lines
512 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
export JRUBY_OPTS="-J-Xmx2g"
|
|
export GRADLE_OPTS="-Xmx2g -Dorg.gradle.daemon=false"
|
|
|
|
rake bootstrap
|
|
# needed to workaround `group => :development`
|
|
rake test:install-core
|
|
rake plugin:install-default
|
|
echo "Generate json with plugins version"
|
|
# Since we generate the lock file and we try to resolve dependencies we will need
|
|
# to use the bundle wrapper to correctly find the rake cli. If we don't do this we
|
|
# will get an activation error,
|
|
./bin/bundle exec rake generate_plugins_version
|