Skip to content

Commit

Permalink
Adjusting the build scripts to correctly load the logstash source and…
Browse files Browse the repository at this point in the history
… allow people to override it
  • Loading branch information
ph committed May 31, 2017
1 parent 2c8047c commit b8ea168
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Gemfile
Expand Up @@ -2,9 +2,10 @@ source 'https://rubygems.org'

gemspec

logstash_path = "../../logstash"
logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"

if Dir.exist?(logstash_path) && ENV["LOGSTASH_SOURCE"] == 1
if Dir.exist?(logstash_path) && use_logstash_source
gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
end
4 changes: 2 additions & 2 deletions ci/build.sh
Expand Up @@ -8,11 +8,11 @@
set -e

echo "Starting build process in: `pwd`"
./ci/setup.sh
source ./ci/setup.sh

if [[ -f "ci/run.sh" ]]; then
echo "Running custom build script in: `pwd`/ci/run.sh"
./ci/run.sh
source ./ci/run.sh
else
echo "Running default build scripts in: `pwd`/ci/build.sh"
bundle install
Expand Down

0 comments on commit b8ea168

Please sign in to comment.