File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
2
3
+ services :
4
+ - docker
5
+
3
6
python :
4
7
- " 2.6"
5
8
- " 2.7"
@@ -8,27 +11,17 @@ python:
8
11
- " 3.6"
9
12
- " 3.7"
10
13
11
- addons :
12
- apt :
13
- packages :
14
- - oracle-java8-installer
15
-
16
14
env :
17
15
# different connection classes to test
18
16
- TEST_ES_CONNECTION=Urllib3HttpConnection
19
17
- TEST_ES_CONNECTION=RequestsHttpConnection
20
18
21
19
before_install :
22
- - sudo update-java-alternatives -s java-8-oracle
23
- - export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre
24
- - java -version
20
+ - docker run --rm --detach --publish 9200:9200 --env "discovery.type=single-node" -e path.repo=/tmp -e "repositories.url.allowed_urls=http://*" -e node.attr.testattr=test -e node.name=test --name elasticsearch docker.elastic.co/elasticsearch/elasticsearch:7.4.0
25
21
26
22
install :
27
- - curl -L -o /tmp/es-snap.zip https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.1.zip
28
- - unzip /tmp/es-snap.zip -d /tmp/
29
- - /tmp/elasticsearch-*/bin/elasticsearch -E path.repo=/tmp -E repositories.url.allowed_urls='http://*' -E node.attr.testattr=test -d
30
23
- git clone https://github.com/elastic/elasticsearch.git ../elasticsearch
31
- - pip install .
24
+ - pip install .[develop]
32
25
33
26
script :
34
27
- python setup.py test
You can’t perform that action at this time.
0 commit comments