forked from BotBotMe/botbot-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (23 loc) · 866 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
language: python
python:
- "2.7"
install:
- "pip install -e . -r requirements.txt"
services:
- postgresql
- redis-server
before_script:
# Necessary variables
- "export WEB_SECRET_KEY=somerandomstring"
- "export STORAGE_URL=postgres://postgres@localhost:5432/botbot"
- "export REDIS_PLUGIN_STORAGE_URL=redis://localhost:6379/0"
- "export REDIS_PLUGIN_QUEUE_URL=redis://localhost:6379/1"
- "export REDIS_SSEQUEUE_URL=redis://localhost:6379/2"
- "export SSE_ENDPOINT_URL=http://localhost:3000/"
- "export SSE_HOST=localhost:3000"
- "psql -c 'create database botbot;' -U postgres"
- "psql -c 'create extension hstore;' -U postgres botbot"
- "psql -c 'create extension hstore;' -U postgres template1"
- "echo 'STORAGE_URL=postgres://postgres@localhost:5432/botbot' >> .env"
- "manage.py collectstatic --noinput"
script: "manage.py test"