forked from uptake/uptasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (80 loc) · 4.08 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
language: R
cache: packages
warnings_are_errors: true
addons:
apt:
packages:
- oracle-java8-set-default
env:
matrix:
- ES_VERSION=1.0.0
- ES_VERSION=1.4.0
- ES_VERSION=1.7.2
- ES_VERSION=2.0.0
- ES_VERSION=2.1.0
- ES_VERSION=2.2.0
- ES_VERSION=2.3.0
- ES_VERSION=5.0.0
- ES_VERSION=5.3.0
- ES_VERSION=5.4.0
- ES_VERSION=5.5.0
before_install:
- case "$ES_VERSION" in
"") ;;
"1.0.0")
export ES_VERSION=1.0.0 ;
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"1.4.0")
export ES_VERSION=1.4.0 ;
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"1.7.2")
export ES_VERSION=1.7.2 ;
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"2.0.0")
export ES_VERSION=2.0.0 ;
curl -O https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"2.1.0")
export ES_VERSION=2.1.0 ;
curl -O https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"2.2.0")
export ES_VERSION=2.2.0 ;
curl -O https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"2.3.0")
export ES_VERSION=2.3.0 ;
curl -O https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"5.0.0")
export ES_VERSION=5.0.0 ;
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"5.3.0")
export ES_VERSION=5.3.0 ;
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"5.4.0")
export ES_VERSION=5.4.0 ;
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
"5.5.0")
export ES_VERSION=5.5.0 ;
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.deb && sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb && sudo service elasticsearch start
;;
esac
- sleep 20
- sudo service elasticsearch status
- wget https://download.elastic.co/demos/kibana/gettingstarted/shakespeare.json -O shakespeare.json
- mv inst/testdata/shakespeare_mapping.json shakespeare_mapping.json
- echo $(ls)
- curl --silent -X PUT "http://127.0.0.1:9200/shakespeare" -d @shakespeare_mapping.json
- head -10000 shakespeare.json > sample_data.json
- split -l 1000 sample_data.json data_
- for filename in $(ls | grep data_); do curl --silent -X POST "http://127.0.0.1:9200/shakespeare/_bulk" --data-binary "@$filename"; done
- curl -X GET "http://127.0.0.1:9200/shakespeare/_search?size=1"
after_success:
- Rscript -e 'install.packages("covr"); covr::codecov()'