mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
The ci_integration.sh script uses double brackets ('[[') test which is not portable. For instance, running it with dash you get the error: ./ci/ci_integration.sh: 10: ./ci/ci_integration.sh: [[: not found This change makes the script use bash, that supports this kind of test. Fixes #6939
24 lines
623 B
Bash
Executable file
24 lines
623 B
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"
|
|
|
|
echo "Running integration tests from qa/integration"
|
|
if [[ ! -d "build" ]]; then
|
|
mkdir build
|
|
fi
|
|
rm -rf build/*
|
|
echo "Building logstash tar file in build/"
|
|
rake artifact:tar
|
|
cd build
|
|
echo "Extracting logstash tar file in build/"
|
|
tar xf *.tar.gz
|
|
|
|
cd ../qa/integration
|
|
# to install test dependencies
|
|
bundle install
|
|
# runs all tests
|
|
rspec
|