mirror of
https://github.com/elastic/logstash.git
synced 2025-04-22 05:37:21 -04:00
* make sure downloaded logstashes use the new (arch independant files name) * add specific privileged bootstrap script for debian 8 that is able to install java8 for this distro * wrap the bootstrap scripts within the platform class, like this logic is in one specific place to select platform specific components * add platform specific bootstrap file for sles-12 and also scripts to download latest logstash rpm version * add custom bootstrap script for ubuntu-1404 to be sure it loads all ca certificates into the system * make the necessary changes to compile with the new package system * correct logstash path usage * remove unnecessary dependancy to rake inside the acceptance test framework * fix script execution under ubuntu environments, making sure it runs on bash Fixes #5350
49 lines
1.5 KiB
Bash
Executable file
49 lines
1.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Since we are using the system jruby, we need to make sure our jvm process
|
|
# uses at least 1g of memory, If we don't do this we can get OOM issues when
|
|
# installing gems. See https://github.com/elastic/logstash/issues/5179
|
|
export JRUBY_OPTS="-J-Xmx1g"
|
|
|
|
SELECTED_TEST_SUITE=$1
|
|
|
|
if [[ $SELECTED_TEST_SUITE == $"redhat" ]]; then
|
|
echo "Generating the RPM, make sure you start with a clean environment before generating other packages."
|
|
rake artifact:rpm
|
|
echo "Acceptance: Installing dependencies"
|
|
cd qa
|
|
bundle install
|
|
|
|
echo "Acceptance: Running the tests"
|
|
bundle exec rake qa:vm:setup["redhat"]
|
|
bundle exec rake qa:vm:ssh_config
|
|
bundle exec rake qa:acceptance:redhat
|
|
bundle exec rake qa:vm:halt["redhat"]
|
|
elif [[ $SELECTED_TEST_SUITE == $"debian" ]]; then
|
|
echo "Generating the DEB, make sure you start with a clean environment before generating other packages."
|
|
rake artifact:deb
|
|
echo "Acceptance: Installing dependencies"
|
|
cd qa
|
|
bundle install
|
|
|
|
echo "Acceptance: Running the tests"
|
|
bundle exec rake qa:vm:setup["debian"]
|
|
bundle exec rake qa:vm:ssh_config
|
|
bundle exec rake qa:acceptance:debian
|
|
bundle exec rake qa:vm:halt["debian"]
|
|
elif [[ $SELECTED_TEST_SUITE == $"all" ]]; then
|
|
echo "Building Logstash artifacts"
|
|
rake artifact:all
|
|
|
|
echo "Acceptance: Installing dependencies"
|
|
cd qa
|
|
bundle install
|
|
|
|
echo "Acceptance: Running the tests"
|
|
bundle exec rake qa:vm:setup
|
|
bundle exec rake qa:vm:ssh_config
|
|
bundle exec rake qa:acceptance:all
|
|
bundle exec rake qa:vm:halt
|
|
cd ..
|
|
fi
|