forked from Runbook/runbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (27 loc) · 971 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
language: python
python:
- 2.7
services:
- redis-server
install:
- pip install -r src/web/requirements.txt --use-mirrors
- pip install -r src/bridge/requirements.txt --use-mirrors
- pip install -r src/monitors/requirements.txt --use-mirrors
- pip install coverage
- pip install coveralls
# - sudo add-apt-repository ppa:rethinkdb/ppa -y
- echo "deb http://download.rethinkdb.com/apt `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
- wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
- sudo apt-get update -q
- sudo apt-get install rethinkdb --force-yes
- rethinkdb --version
before_script:
- rethinkdb &
- cp src/web/instance/web.cfg.default src/web/instance/web.cfg
- python src/bridge/mgmtscripts/create_db.py src/bridge/config/config.yml.default --travis
- python src/web/web.py &
script:
- python src/web/tests.py
- coverage run src/web/tests.py
after_success:
coveralls