forked from healthsites/hcid-watchkeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (27 loc) · 763 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
34
35
36
language: python
services:
- postgresql
env:
global:
- DATABASE_URL='postgres://postgres:@localhost:5432/test_db'
- SECRET_KEY='tT\xd7\xb06\xf7\x9b\xff\x0fZL\xca\xca\x11\xefM\xacr\xfb\xdf\xca\x9b'
- DJANGO_SETTINGS_MODULE=core.settings.test_travis
python:
- '2.7'
addons:
postgresql: "9.3"
install:
- pip install coveralls
- pip install -r REQUIREMENTS-dev.txt
- nodeenv -p --node=0.10.31
- npm -g install yuglify
before_script:
- psql -c 'create database test_db;' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d test_db
- cd django_project
- python manage.py collectstatic --noinput --settings=core.settings.dev_travis
script:
- flake8
- coverage run manage.py test
after_success:
- coveralls