-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy path.travis.yml
35 lines (34 loc) · 895 Bytes
/
.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
dist: trusty
language: python
sudo: true
addons:
apt:
packages:
- oracle-java8-set-default
python:
- "3.4"
- "3.5"
- "3.6"
env:
- ES="5.0.2"
- ES="5.1.2"
- ES="5.2.2"
- ES="5.3.0"
install:
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES.deb && sudo dpkg -i --force-confnew elasticsearch-$ES.deb && sudo service elasticsearch start
- pip install -U setuptools
- pip install -U pip
- pip install -U wheel
- pip install -U tox
before_script:
# slow elasticsearch service
- echo 'waiting for elasticsearch is up'; while ! curl --output /dev/null --silent --head --fail http://127.0.0.1:9200; do sleep 1; echo -n '.'; done
script:
- export TOXENV=py`python -c 'import sys; print("".join(map(str, sys.version_info[:2])))'`
- echo "$TOXENV"
- tox
cache:
directories:
- $HOME/.cache/pip
notifications:
email: false