-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
65 lines (52 loc) · 1.69 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
58
59
60
61
62
63
64
65
language: python
python:
- 2.7
services:
- elasticsearch
env:
- LIBREANT_ES_HOSTS="http://elastic:changeme@localhost:9200"
matrix:
fast_finish: true
include:
- python: "2.7"
env: ES_VERSION=5.x
addons:
apt:
sources:
- elasticsearch-5.x
packages:
- elasticsearch
- python: "2.7"
env: ES_VERSION=2.x
addons:
apt:
sources:
- elasticsearch-2.x
packages:
- elasticsearch=2.4.6
# Debian Jessie (backports)
- python: "2.7"
env:
- EXTRA_INSTALLS="gevent==1.0.1 flask==0.10.1"
- ES_VERSION=1.7
addons:
apt:
sources:
- elasticsearch-1.7
packages:
- elasticsearch=1.7.5
- python: "2.7"
env: TEST_SUITE=flake
- python: "2.7"
env: TEST_SUITE=build_sphinx
install:
- 'pip install -U pip wheel'
- 'if [[ $TEST_SUITE == flake ]]; then pip install flake8; return $?; fi'
- 'if [[ $TEST_SUITE != flake ]]; then pip install .; return $?; fi'
- 'if [[ $TEST_SUITE == build_sphinx ]]; then pip install sphinx; return $?; fi'
- 'if [[ -n "$EXTRA_INSTALLS" ]]; then pip install $EXTRA_INSTALLS; return $?; fi'
script:
- 'if [[ -z $TEST_SUITE ]]; then sleep 10; python setup.py test; return $?; fi'
- 'if [[ $TEST_SUITE == flake ]]; then flake8; return $?; fi'
- 'if [[ $TEST_SUITE == build_sphinx ]]; then python setup.py build_sphinx; return $?; fi'
cache: pip