-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
32 lines (32 loc) · 1.02 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
sudo: required
language: python
python:
- 2.7
env:
- PYMONGO_VERSION="==2.7.1" MONGOENGINE_VERSION="==0.8.1"
- PYMONGO_VERSION="==2.7.1" MONGOENGINE_VERSION=">=0.8.1"
- PYMONGO_VERSION=">=2.7.1,<3.0.0" MONGOENGINE_VERSION="==0.8.1"
- PYMONGO_VERSION=">=2.7.1,<3.0.0" MONGOENGINE_VERSION=">=0.8.1"
services:
- docker
- postgresql
addons:
postgresql: "9.4"
before_install:
- docker run -d -p 27017:27017 -v /var/lib/tokumx --privileged=true wlanslovenija/tokumx
- docker run -d -p 8086:8086 -v /data tozd/influxdb
- sudo apt-get update -qq
- sudo apt-get install -qq liblzma-dev
install:
- pip install "mongoengine$MONGOENGINE_VERSION"
- pip install "pymongo$PYMONGO_VERSION"
- pip install pep8
- pip install pylint
- python setup.py install
- psql -U postgres -c "CREATE ROLE test WITH SUPERUSER LOGIN PASSWORD 'test'"
- psql -U postgres -c "CREATE DATABASE test_database WITH OWNER test ENCODING 'UNICODE'"
before_script:
- pep8 datastream tests docs
- pylint datastream tests || true
script:
- python -Wall setup.py test