Bring back travis

This commit is contained in:
Honza Král
2019-10-30 15:31:31 +01:00
parent a2e9f0c807
commit 0dcd2b52d8
+34
View File
@@ -0,0 +1,34 @@
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
addons:
apt:
packages:
- oracle-java8-installer
env:
# different connection classes to test
- TEST_ES_CONNECTION=Urllib3HttpConnection
- TEST_ES_CONNECTION=RequestsHttpConnection
before_install:
- sudo update-java-alternatives -s java-8-oracle
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre
- java -version
install:
- curl -L -o /tmp/es-snap.zip https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.1.zip
- unzip /tmp/es-snap.zip -d /tmp/
- /tmp/elasticsearch-*/bin/elasticsearch -E path.repo=/tmp -E repositories.url.allowed_urls='http://*' -E node.attr.testattr=test -d
- git clone https://github.com/elastic/elasticsearch.git ../elasticsearch
- pip install .
script:
- python setup.py test