-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
69 lines (60 loc) · 2.17 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
66
67
68
69
sudo: required
dist: trusty
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
services:
- docker
env:
- CLIENT=socket
before_install:
- docker pull elasticsearch
- docker pull elubow/cassandra
- if [ $CLIENT == socket ]; then
docker pull davebshow/titan-websockets;
else
docker pull elubow/titan;
fi
install:
- pip install tornado
- pip install coveralls
- pip install requests_futures
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install trollius; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then pip install asyncio; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then pip install aiohttp; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install aiohttp; fi
- docker run -d --name es1 elasticsearch
- docker run -d --name cas1 elubow/cassandra
- if [ $CLIENT == socket ]; then
docker run -d --name titan1 --link es1:elasticsearch --link cas1:cassandra -p 8182:8182 davebshow/titan-websockets;
else
docker run -d --name titan1 --link es1:elasticsearch --link cas1:cassandra -p 8182:8182 elubow/titan;
fi
before_script:
- sleep 30
script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then
coverage run --source=gremlinclient setup.py test -s tests.test_trollius;
coverage run --source=gremlinclient setup.py test -s tests.test_tornado;
fi
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then
coverage run --source=gremlinclient setup.py test -s tests.test_tornado;
coverage run --source=gremlinclient setup.py test -s tests.test_asyncio;
fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then
coverage run --source=gremlinclient setup.py test -s tests.test_aiohttp;
fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then
coverage run --source=gremlinclient setup.py test -s tests.test_tornado_PEP492;
coverage run --source=gremlinclient setup.py test -s tests.test_asyncio_PEP492;
coverage run --source=gremlinclient setup.py test -s tests.test_aiohttp;
coverage run --source=gremlinclient setup.py test -s tests.test_aiohttp_PEP492;
fi
after_success:
- coveralls
after_script:
- docker stop $(docker ps -a -q)
- docker rm $(docker ps -a -q)