Skip to content

Commit aa0d7b4

Browse files
committed
Make travis sane
Fixes #217
1 parent 85f31dc commit aa0d7b4

File tree

3 files changed

+50
-6
lines changed

3 files changed

+50
-6
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
---
22
sudo: false
3-
jdk:
4-
- oraclejdk8
53
language: ruby
64
cache: bundler
7-
rvm:
8-
- jruby-1.7.25
9-
script:
10-
- bundle exec rspec spec
115
matrix:
126
include:
137
- rvm: jruby-9.1.13.0
@@ -19,3 +13,6 @@ matrix:
1913
- rvm: jruby-1.7.27
2014
env: LOGSTASH_BRANCH=5.6
2115
fast_finish: true
16+
install: true
17+
script: ci/build.sh
18+
jdk: oraclejdk8

ci/build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
# version: 1
3+
########################################################
4+
#
5+
# AUTOMATICALLY GENERATED! DO NOT EDIT
6+
#
7+
########################################################
8+
set -e
9+
10+
echo "Starting build process in: `pwd`"
11+
source ./ci/setup.sh
12+
13+
if [[ -f "ci/run.sh" ]]; then
14+
echo "Running custom build script in: `pwd`/ci/run.sh"
15+
source ./ci/run.sh
16+
else
17+
echo "Running default build scripts in: `pwd`/ci/build.sh"
18+
bundle install
19+
bundle exec rake vendor
20+
bundle exec rspec spec
21+
fi

ci/setup.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
# version: 1
3+
########################################################
4+
#
5+
# AUTOMATICALLY GENERATED! DO NOT EDIT
6+
#
7+
########################################################
8+
set -e
9+
if [ "$LOGSTASH_BRANCH" ]; then
10+
echo "Building plugin using Logstash source"
11+
BASE_DIR=`pwd`
12+
echo "Checking out branch: $LOGSTASH_BRANCH"
13+
git clone -b $LOGSTASH_BRANCH https://github.com/elastic/logstash.git ../../logstash --depth 1
14+
printf "Checked out Logstash revision: %s\n" "$(git -C ../../logstash rev-parse HEAD)"
15+
cd ../../logstash
16+
echo "Building plugins with Logstash version:"
17+
cat versions.yml
18+
echo "---"
19+
# We need to build the jars for that specific version
20+
echo "Running gradle assemble in: `pwd`"
21+
./gradlew assemble
22+
cd $BASE_DIR
23+
export LOGSTASH_SOURCE=1
24+
else
25+
echo "Building plugin using released gems on rubygems"
26+
fi

0 commit comments

Comments
 (0)