File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ source 'https://rubygems.org'
2
2
3
3
gemspec
4
4
5
- logstash_path = "../../logstash"
5
+ logstash_path = ENV [ "LOGSTASH_PATH" ] || "../../logstash"
6
+ use_logstash_source = ENV [ "LOGSTASH_SOURCE" ] && ENV [ "LOGSTASH_SOURCE" ] . to_s == "1"
6
7
7
- if Dir . exist? ( logstash_path ) && ENV [ "LOGSTASH_SOURCE" ] == 1
8
+ if Dir . exist? ( logstash_path ) && use_logstash_source
8
9
gem 'logstash-core' , :path => "#{ logstash_path } /logstash-core"
9
10
gem 'logstash-core-plugin-api' , :path => "#{ logstash_path } /logstash-core-plugin-api"
10
11
end
Original file line number Diff line number Diff line change 8
8
set -e
9
9
10
10
echo " Starting build process in: ` pwd` "
11
- ./ci/setup.sh
11
+ source ./ci/setup.sh
12
12
13
13
if [[ -f " ci/run.sh" ]]; then
14
14
echo " Running custom build script in: ` pwd` /ci/run.sh"
15
- ./ci/run.sh
15
+ source ./ci/run.sh
16
16
else
17
17
echo " Running default build scripts in: ` pwd` /ci/build.sh"
18
18
bundle install
You can’t perform that action at this time.
0 commit comments