forked from healthsites/healthsites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (35 loc) · 897 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
37
38
39
40
41
42
43
44
45
46
language: python
services:
- postgresql
- rabbitmq
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
- RABBITMQ_HOST=localhost
python:
- '2.7'
sudo: false
dist: trusty
addons:
postgresql: "9.4"
apt:
packages:
- postgresql-9.4-postgis-2.3
install:
- pip install coveralls
- pip install -r REQUIREMENTS-dev.txt
before_script:
- psql -c 'create database test_db;' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d test_db
- psql -c 'create database test_db_osm;' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d test_db_osm
- cd django_project
script:
- flake8
- coverage run manage.py test
after_success:
- coveralls
email: