forked from kartoza/feti
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
45 lines (36 loc) · 1.14 KB
/
.travis.yml
File metadata and controls
45 lines (36 loc) · 1.14 KB
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
sudo: false
language: python
services:
- postgresql
- elasticsearch
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 = 'rabbitmq'
python:
- '3.4.5'
addons:
postgresql: "9.3"
apt:
packages:
- postgresql-9.3-postgis-2.3
install:
- pip install coveralls
- pip install -r REQUIREMENTS-dev.txt
- nodeenv -p --node=0.10.31
- npm -g install yuglify
- pip install Django==1.8.14
before_script:
- curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.2/elasticsearch-2.4.2.deb && sudo dpkg -i --force-confnew elasticsearch-2.4.2.deb && sudo service elasticsearch restart
- psql -c 'create database test_db;' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d test_db
script:
# - flake8 --config .flake8 django_project
- cd django_project
- python manage.py makemigrations
- python manage.py migrate
- coverage run manage.py test
after_success:
- coveralls