This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
57 lines (50 loc) · 1.5 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: python
dist: trusty
sudo: false
cache: pip
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev"
- "nightly"
addons:
apt:
packages:
- openjdk-8-jre
env:
matrix:
- ES_VERSION=5.4.1
DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
- ES_VERSION=5.3.3
DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
- ES_VERSION=2.4.5
DOWNLOAD_URL=https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.tar.gz
- ES_VERSION=1.7.6
DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
install:
- mkdir /tmp/elasticsearch
- wget -O - ${DOWNLOAD_URL} | tar xz --directory=/tmp/elasticsearch --strip-components=1
- /tmp/elasticsearch/bin/elasticsearch -d
- sleep 10
- pip install git+https://github.com/elastic/elasticsearch-py.git#egg=elasticsearch
script:
- 'case "${ES_VERSION}" in
5.4.1|5.3.3)
pip install -r requirements-v5.txt || travis_terminate 1
;;
2.4.5)
pip install -r requirements-v2.txt || travis_terminate 1
;;
1.7.6)
pip install -r requirements-v1.txt || travis_terminate 1
;;
*)
travis_terminate 1
;;
esac'
- pip install coveralls nose2 nose2-cov
- coverage run --source=nxtool -m nose2.__main__ -v
after_success:
- coveralls