-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
42 lines (35 loc) · 1.42 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: rust
sudo: false
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
rust:
- stable
- beta
- nightly
before_install:
- echo "Before install, check Java version..."
- sudo apt-get remove openjdk*
- sudo apt-get install openjdk-8-jre
- which java
- echo $JAVA_HOME
- curl -O ${ES_DOWNLOAD_URL} && unzip elasticsearch-${ES_VERSION}.zip
- elasticsearch-${ES_VERSION}/bin/elasticsearch > /tmp/es.log &
# As recommended here: http://docs.travis-ci.com/user/database-setup/#ElasticSearch
before_script:
- sleep 10
script:
- cargo build ${FEATURES}
- cargo test ${FEATURES}
env:
global:
- RUST_BACKTRACE=1
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
matrix:
- FEATURES="--features es5" ES_VERSION=5.6.14 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.zip
- FEATURES="--features es5,geo" ES_VERSION=5.6.14 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.zip
- FEATURES="" ES_VERSION=2.0.2 ES_DOWNLOAD_URL=https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/2.0.2/elasticsearch-2.0.2.zip
- FEATURES="--features geo" ES_VERSION=2.0.2 ES_DOWNLOAD_URL=https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/2.0.2/elasticsearch-2.0.2.zip