diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9524f8fe --- /dev/null +++ b/.travis.yml @@ -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