Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Switch to the new elasticsearch testing regime
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Mar 24, 2017
1 parent 87cd792 commit 53d021a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .travis-install.sh
@@ -1,11 +1,7 @@
# /usr/bin/env sh
#!/bin/bash

pip install tox

if [ "$TOXENV" = 'py34' ]; then
pip install coveralls
fi

if [ "$ES_URL" != 'no' ]; then
mkdir /tmp/elasticsearch
wget -O - "$ES_URL" | tar xz --directory=/tmp/elasticsearch --strip-components=1
fi
11 changes: 6 additions & 5 deletions .travis.yml
Expand Up @@ -3,11 +3,12 @@ python: "3.5"
cache: pip

env:
- TOXENV=py34 DEPLOY=no ES_BINARY=/tmp/elasticsearch/bin/elasticsearch ES_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.2.2.tar.gz
- TOXENV=py35 DEPLOY=no ES_BINARY=/tmp/elasticsearch/bin/elasticsearch ES_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.2.2.tar.gz
- TOXENV=py34 DEPLOY=yes ES_BINARY=/tmp/elasticsearch/bin/elasticsearch ES_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.4.3.tar.gz
- TOXENV=py35 DEPLOY=no ES_BINARY=/tmp/elasticsearch/bin/elasticsearch ES_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.4.3.tar.gz
- TOXENV=pep8 ES_URL=no DEPLOY=no
- TOXENV=py34 DEPLOY=no ES_VERSION=2.2.2
- TOXENV=py35 DEPLOY=no ES_VERSION=2.2.2
- TOXENV=py34 DEPLOY=yes ES_VERSION=2.4.3
- TOXENV=py35 DEPLOY=no ES_VERSION=2.4.3

- TOXENV=pep8 DEPLOY=no

install: ./.travis-install.sh

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -6,7 +6,7 @@ dependencies = setuptools==18.8.1
git+git://github.com/OneGov/onegov.testing.git#egg=onegov.testing

[testenv]
passenv = LANG ES_BINARY
passenv = LANG ES_VERSION

deps= {[base]dependencies}
-e{toxinidir}[test]
Expand Down

0 comments on commit 53d021a

Please sign in to comment.