Skip to content

Commit be09c33

Browse files
ES7 travis config
1 parent 9ee2abc commit be09c33

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,21 @@ matrix:
4141
- env: TOX_ENV=py38-django30
4242
python: 3.8
4343

44+
env:
45+
global:
46+
- ES_APT_URL=https://artifacts.elastic.co/packages/7.x/apt
47+
4448
before_install:
45-
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.deb && sudo dpkg -i --force-confnew elasticsearch-6.5.4.deb && sudo service elasticsearch restart
49+
# - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.deb && sudo dpkg -i --force-confnew elasticsearch-6.5.4.deb && sudo service elasticsearch restart
50+
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
51+
- echo "deb $ES_APT_URL stable main" | sudo tee -a /etc/apt/sources.list.d/elk.list
52+
- sudo apt-get remove --purge elasticsearch -y
53+
- sudo apt-get update && sudo apt-get install elasticsearch -y
54+
- 'sudo echo "xpack.security.enabled: false" > /etc/elasticsearch/elasticsearch.yml'
55+
- 'sudo echo "http.host: 0.0.0.0" >> /etc/elasticsearch/elasticsearch.yml'
56+
- 'sudo echo "transport.host: 127.0.0.1" >> /etc/elasticsearch/elasticsearch.yml'
57+
- 'sudo echo "discovery.type: single-node" >> /etc/elasticsearch/elasticsearch.yml'
58+
- sudo -i service elasticsearch restart
4659

4760
install: pip install -r examples/requirements/test.txt
4861

examples/requirements/elastic.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-r elastic_6x.txt
1+
-r elastic_7x.txt

0 commit comments

Comments
 (0)