From 87a09091cece7c2fe8c0b19b39f136bcbfd171a0 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Tue, 27 Aug 2013 03:05:30 +0200 Subject: [PATCH] more detailed .travis.yml file, still untested --- .travis.yml | 18 ++++++++++++++++-- dev_requirements.txt | 2 -- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 564e231a..d829034e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,23 @@ python: - "2.7" - "3.3" - "pypy" +env: + # different connection classes to test + - TEST_ES_CONNECTION=Urllib3HttpConnection + - TEST_ES_CONNECTION=ThriftConnection + - TEST_ES_CONNECTION=RequestsHttpConnection +matrix: + exclude: + # skip testing thrift on py3 + - python: "3.3" + env: TEST_ES_CONNECTION=ThriftConnection install: + # install thrift when using it + - "if [[ $TEST_ES_CONNECTION == 'ThriftConnection' ]]; then pip install thrift; fi" + # install pylibmc on python2 + - "if [[ $TRAVIS_PYTHON_VERSION != '3.3' ]]; then pip install pylibmc; fi" + - git clone https://github.com/elasticsearch/elasticsearch-rest-api-spec ../elasticsearch-rest-api-spec - pip install -r dev_requirements.txt --use-mirrors - - python setup.py develop + - pip install . script: - python setup.py test - - python setup.py build_sphinx -b doctest diff --git a/dev_requirements.txt b/dev_requirements.txt index a3328329..ad286d1b 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -4,5 +4,3 @@ nose coverage mock pyaml -pylibmc -thrift