forked from logstash-plugins/logstash-input-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in logstash-mass_effect.gemspec | ||
gemspec | ||
|
||
logstash_path = "../../logstash" | ||
|
||
if Dir.exist?(logstash_path) && ENV["LOGSTASH_SOURCE"] == 1 | ||
gem 'logstash-core', :path => "#{logstash_path}/logstash-core" | ||
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# version: 1 | ||
######################################################## | ||
# | ||
# AUTOMATICALLY GENERATED! DO NOT EDIT | ||
# | ||
######################################################## | ||
set -e | ||
|
||
echo "Starting build process in: `pwd`" | ||
./ci/setup.sh | ||
|
||
if [[ -f "ci/run.sh" ]]; then | ||
echo "Running custom build script in: `pwd`/ci/run.sh" | ||
./ci/run.sh | ||
else | ||
echo "Running default build scripts in: `pwd`/ci/build.sh" | ||
bundle install | ||
bundle exec rake vendor | ||
bundle exec rspec spec | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# version: 1 | ||
######################################################## | ||
# | ||
# AUTOMATICALLY GENERATED! DO NOT EDIT | ||
# | ||
######################################################## | ||
set -e | ||
if [ "$LOGSTASH_BRANCH" ]; then | ||
echo "Building plugin using Logstash source" | ||
BASE_DIR=`pwd` | ||
echo "Checking out branch: $LOGSTASH_BRANCH" | ||
git clone -b $LOGSTASH_BRANCH https://github.com/elastic/logstash.git ../../logstash --depth 1 | ||
printf "Checked out Logstash revision: %s\n" "$(git -C ../../logstash rev-parse HEAD)" | ||
cd ../../logstash | ||
echo "Building plugins with Logstash version:" | ||
cat versions.yml | ||
echo "---" | ||
# We need to build the jars for that specific version | ||
echo "Running gradle assemble in: `pwd`" | ||
./gradlew assemble | ||
cd $BASE_DIR | ||
export LOGSTASH_SOURCE=1 | ||
else | ||
echo "Building plugin using released gems on rubygems" | ||
fi |