File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff 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+
4448before_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
4760install : pip install -r examples/requirements/test.txt
4861
Original file line number Diff line number Diff line change 1- -r elastic_6x .txt
1+ -r elastic_7x .txt
You can’t perform that action at this time.
0 commit comments