forked from hasadna/Open-Knesset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 1015 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
language: python
sudo: false
cache:
pip: true
apt: true
directories:
- devdb
addons:
sauce_connect: true
apt:
packages:
- poppler-data
- poppler-utils
- python-dev
- python-imaging
- python-setuptools
- python-pdftools
- python-lxml
- python-simplejson
python:
- "2.7"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install --upgrade pip
- pip install -r requirements.txt --timeout 30
# command to run tests, e.g. python setup.py test
script:
- ./manage.py test
# for the browser tests we need a real db with full data - we rely on cached version to speed up tests
- if [ ! -f devdb/dev.db ]; then wget http://oknesset-devdb.s3.amazonaws.com/dev.db.bz2; fi
- if [ ! -f devdb/dev.db ]; then bunzip2 dev.db.bz2 && cp dev.db devdb/dev.db; else cp devdb/dev.db dev.db; fi
- ./manage.py migrate
- ./manage.py test --testrunner=knesset.browser_test_runner.Runner --browser=Sauce --full-initialization