-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
58 lines (51 loc) · 2.02 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
language: elixir
elixir:
- 1.7.4
- 1.8.2
- 1.9.4
- 1.10.1
sudo: required
env:
matrix:
- ES_VERSION=2.4.6
- ES_VERSION=6.3.2
- ES_VERSION=6.4.1
- ES_VERSION=6.5.3
- ES_VERSION=6.6.0
- ES_VERSION=7.6.0
before_install:
- sudo dpkg -r elasticsearch
- case "$ES_VERSION" in
"") ;;
"2.4.6")
export ES_VERSION=2.4.6 ;
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
;;
"6.3.2")
export ES_VERSION=6.3.2 ;
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
;;
"6.4.1")
export ES_VERSION=6.4.1 ;
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
;;
"6.5.3")
export ES_VERSION=6.5.3 ;
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
;;
"6.6.0")
export ES_VERSION=6.6.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
;;
"7.6.0")
export ES_VERSION=6.6.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
before_script:
- sleep 10
# Outputs info about ES, including version number. Useful for debugging.
- curl localhost:9200
script:
- mix test --include integration
- mix credo --strict