forked from Runbook/runbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.41 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
language: python
python:
- 2.7
services:
- redis-server
- docker
addons:
hosts:
- rethinkdb
- redis
install:
- pip install -r src/web/requirements.txt
- pip install -r src/bridge/requirements.txt
- pip install -r src/monitors/requirements.txt
- pip install -r src/actions/requirements.txt
- pip install coverage
- pip install coveralls
- 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 -y rethinkdb
- rethinkdb --version
# - sed -i 's/rethinkdb/localhost/g' src/bridge/config/config.yml
# - sed -i 's/rethinkdb/localhost/g' src/web/instance/web.cfg
before_script:
- rethinkdb --bind 127.0.0.1 --daemon
- python src/bridge/mgmtscripts/create_db.py src/bridge/config/config.yml
- python src/web/web.py &
script:
- python src/web/tests.py
- coverage run src/web/tests.py
- docker build -t web src/web/
- docker build -t monitors src/monitors
- docker build -t actions src/actions
- docker build -t bridge src/bridge
- docker build -t runbook ./
after_success:
coveralls
notifications:
slack:
secure: gTj0AYyI7emZp/hAVyyjzTbqVpwo+PgMiZRCPokpBajXAKmarbt+L/9zD+zhI2u+Kv1/ho8U/9FFu4ZnpTpxG82Ndh3wCJKYFaPQo9M6EAaBatKet3IlC3MICjRIDZRlrt4xfz2pbSq09XNqBa/O5MOIf7SKvP8z/9NjXZdbzk8=